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
This commit is contained in:
@@ -81,6 +81,7 @@ void CodeGenModule::createObjCRuntime() {
|
||||
void CodeGenModule::Release() {
|
||||
EmitDeferred();
|
||||
EmitCXXGlobalInitFunc();
|
||||
EmitCXXGlobalDtorFunc();
|
||||
if (Runtime)
|
||||
if (llvm::Function *ObjCInitFunction = Runtime->ModuleInitFunction())
|
||||
AddGlobalCtor(ObjCInitFunction);
|
||||
|
||||
Reference in New Issue
Block a user