Changes in directory llvm/tools/llvm2cpp:

CppWriter.cpp updated: 1.49 -> 1.50
---
Log message:

Call the correct function name. Patch from Stephane Letz.


---
Diffs of the changes:  (+1 -1)

 CppWriter.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/tools/llvm2cpp/CppWriter.cpp
diff -u llvm/tools/llvm2cpp/CppWriter.cpp:1.49 
llvm/tools/llvm2cpp/CppWriter.cpp:1.50
--- llvm/tools/llvm2cpp/CppWriter.cpp:1.49      Tue Jun  5 00:28:26 2007
+++ llvm/tools/llvm2cpp/CppWriter.cpp   Sat Jun 16 11:17:35 2007
@@ -1690,7 +1690,7 @@
   Out << "using namespace llvm;\n\n";
   Out << "Module* " << fname << "();\n\n";
   Out << "int main(int argc, char**argv) {\n";
-  Out << "  Module* Mod = makeLLVMModule();\n";
+  Out << "  Module* Mod = " << fname << "();\n";
   Out << "  verifyModule(*Mod, PrintMessageAction);\n";
   Out << "  std::cerr.flush();\n";
   Out << "  std::cout.flush();\n";



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to