[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp
Reid Spencer
reid at x10sys.com
Tue Jan 30 12:10:00 PST 2007
Changes in directory llvm/tools/llvm2cpp:
CppWriter.cpp updated: 1.35 -> 1.36
---
Log message:
For PR1136: http://llvm.org/PR1136 : Rename GlobalVariable::isExternal as isDeclaration to avoid
confusion with external linkage types.
---
Diffs of the changes: (+4 -4)
CppWriter.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: llvm/tools/llvm2cpp/CppWriter.cpp
diff -u llvm/tools/llvm2cpp/CppWriter.cpp:1.35 llvm/tools/llvm2cpp/CppWriter.cpp:1.36
--- llvm/tools/llvm2cpp/CppWriter.cpp:1.35 Sun Jan 28 09:51:15 2007
+++ llvm/tools/llvm2cpp/CppWriter.cpp Tue Jan 30 14:08:39 2007
@@ -1452,7 +1452,7 @@
Out << ",";
nl(Out) << "/*Name=*/\"";
printEscapedString(F->getName());
- Out << "\", mod); " << (F->isExternal()? "// (external, no body)" : "");
+ Out << "\", mod); " << (F->isDeclaration()? "// (external, no body)" : "");
nl(Out,-1);
printCppName(F);
Out << "->setCallingConv(";
@@ -1476,7 +1476,7 @@
}
void CppWriter::printFunctionBody(const Function *F) {
- if (F->isExternal())
+ if (F->isDeclaration())
return; // external functions have no bodies.
// Clear the DefinedValues and ForwardRefs maps because we can't have
@@ -1550,7 +1550,7 @@
error(std::string("Function '") + func + "' not found in input module");
return;
}
- if (F->isExternal()) {
+ if (F->isDeclaration()) {
error(std::string("Function '") + func + "' is external!");
return;
}
@@ -1611,7 +1611,7 @@
nl(Out) << "// Function Definitions"; nl(Out);
for (Module::const_iterator I = TheModule->begin(), E = TheModule->end();
I != E; ++I) {
- if (!I->isExternal()) {
+ if (!I->isDeclaration()) {
nl(Out) << "// Function: " << I->getName() << " (" << getCppName(I)
<< ")";
nl(Out) << "{";
More information about the llvm-commits
mailing list