OSDN Git Service

IR: Introduce Module::global_objects().
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 22 Jun 2016 20:29:42 +0000 (20:29 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 22 Jun 2016 20:29:42 +0000 (20:29 +0000)
commit277258478e522af4c22ba3b873a84ff26833789f
treeb5d811535652e2d3b1e2ce93f4d1bba6ceac7432
parente46cd3a4c35e217f314560c9d1cf30bc84f57e9e
IR: Introduce Module::global_objects().

This is a convenience iterator that allows clients to enumerate the
GlobalObjects within a Module.

Also start using it in a few places where it is obviously the right thing
to use.

Differential Revision: http://reviews.llvm.org/D21580

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273470 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h
include/llvm/IR/Module.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/ExecutionEngine/ExecutionEngine.cpp
lib/IR/AsmWriter.cpp
lib/Transforms/IPO/GlobalDCE.cpp
test/CodeGen/XCore/linkage.ll