diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-17 23:57:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-17 23:57:13 +0000 |
commit | ad64e024bd18cf25dcfa44e049004371838decd8 (patch) | |
tree | 7c3716342d7f86b40bb23de6b8d00f508d328889 /lib/CodeGen/CodeGenModule.cpp | |
parent | 5abd1b0d237b42a7d617ac577ab0f4560907d6ef (diff) |
fix objc codegen to not have its own list of things that eventually get into llvm.used, just
populate CGM's list directly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index d502d79d29..20fbbd2f2e 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -415,9 +415,7 @@ void CodeGenModule::AddUsedGlobal(llvm::GlobalValue *GV) { void CodeGenModule::EmitLLVMUsed() { // Don't create llvm.used if there is no need. - // FIXME. Runtime indicates that there might be more 'used' symbols; but not - // necessariy. So, this test is not accurate for emptiness. - if (LLVMUsed.empty() && !Runtime) + if (LLVMUsed.empty()) return; llvm::Type *i8PTy = VMContext.getPointerTypeUnqual(llvm::Type::Int8Ty); @@ -431,8 +429,6 @@ void CodeGenModule::EmitLLVMUsed() { i8PTy); } - if (Runtime) - Runtime->MergeMetadataGlobals(UsedArray); if (UsedArray.empty()) return; llvm::ArrayType *ATy = VMContext.getArrayType(i8PTy, UsedArray.size()); |