diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-10 16:42:19 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-10 16:42:19 +0000 |
commit | 96b491a1fa6ee5075e153c7fea87ddb4f47bbb87 (patch) | |
tree | 0928cb6eab96876fb93847ef4e49dfe2b4e487e0 /llvm/lib/Target/CppBackend | |
parent | c9b1efd515d894818562548afa85565b362b534b (diff) | |
download | bcm5719-llvm-96b491a1fa6ee5075e153c7fea87ddb4f47bbb87.tar.gz bcm5719-llvm-96b491a1fa6ee5075e153c7fea87ddb4f47bbb87.zip |
Update for GlobalVariables ctor change.
llvm-svn: 75251
Diffstat (limited to 'llvm/lib/Target/CppBackend')
-rw-r--r-- | llvm/lib/Target/CppBackend/CPPBackend.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index 6c48ae8d270..06eb5753f71 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/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()) { |