Browse Source

Update for GlobalVariables ctor change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75251 91177308-0d34-0410-b5e6-96231b3b80d8
Owen Anderson 16 years ago
parent
commit
16a412edb6
1 changed files with 2 additions and 3 deletions
  1. 2 3
      lib/Target/CppBackend/CPPBackend.cpp

+ 2 - 3
lib/Target/CppBackend/CPPBackend.cpp

@@ -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()) {