[cfe-commits] r130986 - /cfe/trunk/lib/CodeGen/CGDeclCXX.cpp
Axel Naumann
Axel.Naumann at cern.ch
Fri May 6 08:24:04 PDT 2011
Author: axel
Date: Fri May 6 10:24:04 2011
New Revision: 130986
URL: http://llvm.org/viewvc/llvm-project?rev=130986&view=rev
Log:
Reset the emitted initializers.
This enables incremental codegen, where the initializer array can be removed from the module, such that only new initializers will be emitted and run.
Modified:
cfe/trunk/lib/CodeGen/CGDeclCXX.cpp
Modified: cfe/trunk/lib/CodeGen/CGDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDeclCXX.cpp?rev=130986&r1=130985&r2=130986&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDeclCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDeclCXX.cpp Fri May 6 10:24:04 2011
@@ -248,6 +248,8 @@
&CXXGlobalInits[0],
CXXGlobalInits.size());
AddGlobalCtor(Fn);
+ CXXGlobalInits.clear();
+ PrioritizedCXXGlobalInits.clear();
}
void CodeGenModule::EmitCXXGlobalDtorFunc() {
More information about the cfe-commits
mailing list