Update for GlobalVariables ctor change.
authorOwen Anderson <resistor@mac.com>
Fri, 10 Jul 2009 16:42:19 +0000 (16:42 +0000)
committerOwen Anderson <resistor@mac.com>
Fri, 10 Jul 2009 16:42:19 +0000 (16:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75251 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CppBackend/CPPBackend.cpp

index 6c48ae8d270cc6baf56c2dc23e5989cfbaa9063b..06eb5753f71d9dfaa9147156bbb7b05deb070fc3 100644 (file)
@@ -1001,7 +1001,7 @@ namespace {
       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 @@ namespace {
     }
     nl(Out) << "/*Name=*/\"";
     printEscapedString(GV->getName());
-    Out << "\",";
-    nl(Out) << "mod);";
+    Out << "\");";
     nl(Out);
 
     if (GV->hasSection()) {