Changes in directory llvm/tools/llvm2cpp:
CppWriter.cpp updated: 1.37 -> 1.38 --- Log message: For PR411: http://llvm.org/PR411 : Adjust to changes in Module interface: getMainFunction() -> getFunction("main") getNamedFunction(X) -> getFunction(X) --- Diffs of the changes: (+2 -2) CppWriter.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/tools/llvm2cpp/CppWriter.cpp diff -u llvm/tools/llvm2cpp/CppWriter.cpp:1.37 llvm/tools/llvm2cpp/CppWriter.cpp:1.38 --- llvm/tools/llvm2cpp/CppWriter.cpp:1.37 Mon Feb 5 14:47:21 2007 +++ llvm/tools/llvm2cpp/CppWriter.cpp Mon Feb 5 15:19:13 2007 @@ -1544,7 +1544,7 @@ } void CppWriter::printInline(const std::string& fname, const std::string& func) { - const Function* F = TheModule->getNamedFunction(func); + const Function* F = TheModule->getFunction(func); if (!F) { error(std::string("Function '") + func + "' not found in input module"); return; @@ -1719,7 +1719,7 @@ const std::string& fname, // Name of generated function const std::string& funcName // Name of function to generate ) { - const Function* F = TheModule->getNamedFunction(funcName); + const Function* F = TheModule->getFunction(funcName); if (!F) { error(std::string("Function '") + funcName + "' not found in input module"); return; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits