[llvm-commits] [llvm] r75251 - /llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Owen Anderson
resistor at mac.com
Fri Jul 10 09:42:21 PDT 2009
Author: resistor
Date: Fri Jul 10 11:42:19 2009
New Revision: 75251
URL: http://llvm.org/viewvc/llvm-project?rev=75251&view=rev
Log:
Update for GlobalVariables ctor change.
Modified:
llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Modified: llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp?rev=75251&r1=75250&r2=75251&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp (original)
+++ llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp Fri Jul 10 11:42:19 2009
@@ -1001,7 +1001,7 @@
nl(Out) << "if (!" << getCppName(GV) << ") {";
in(); nl(Out) << getCppName(GV);
}
- Out << " = new GlobalVariable(";
+ Out << " = new GlobalVariable(/*Module=*/*mod";
nl(Out) << "/*Type=*/";
printCppName(GV->getType()->getElementType());
Out << ",";
@@ -1016,8 +1016,7 @@
}
nl(Out) << "/*Name=*/\"";
printEscapedString(GV->getName());
- Out << "\",";
- nl(Out) << "mod);";
+ Out << "\");";
nl(Out);
if (GV->hasSection()) {
More information about the llvm-commits
mailing list