[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp
Reid Spencer
reid at x10sys.com
Mon Feb 5 13:19:51 PST 2007
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;
More information about the llvm-commits
mailing list