summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-03-20 04:15:41 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-03-20 04:15:41 +0000
commitfe06df4bf30c826411594c664e64f849a0faef0b (patch)
tree68b8f1de68379a289afa9e7db0d22a4bea7059bf /clang/lib/CodeGen/CodeGenModule.cpp
parent7572284f4f1be2982f5d0c0e5112eddd7798d2e2 (diff)
downloadbcm5719-llvm-fe06df4bf30c826411594c664e64f849a0faef0b.tar.gz
bcm5719-llvm-fe06df4bf30c826411594c664e64f849a0faef0b.zip
C++: Add support for -fno-use-cxa-atexit.
- So much typing, so little gain... Also, rename the __cxx_global_initialization function just to match llvm-gcc. llvm-svn: 99039
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 3b04cc125eb..b4b5bbdb99a 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -81,6 +81,7 @@ void CodeGenModule::createObjCRuntime() {
void CodeGenModule::Release() {
EmitDeferred();
EmitCXXGlobalInitFunc();
+ EmitCXXGlobalDtorFunc();
if (Runtime)
if (llvm::Function *ObjCInitFunction = Runtime->ModuleInitFunction())
AddGlobalCtor(ObjCInitFunction);
OpenPOWER on IntegriCloud