diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-30 20:08:39 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-30 20:08:39 +0000 |
commit | 5301e7c60569c5ab22b113a5828fdb348796a680 (patch) | |
tree | fd57924623a8f84c4a8b765d5f090bfbde72efb8 /llvm/tools/llvm2cpp/CppWriter.cpp | |
parent | 3a0bbb0a4d757c665979689cee9a874dfb8e6353 (diff) | |
download | bcm5719-llvm-5301e7c60569c5ab22b113a5828fdb348796a680.tar.gz bcm5719-llvm-5301e7c60569c5ab22b113a5828fdb348796a680.zip |
For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoid
confusion with external linkage types.
llvm-svn: 33663
Diffstat (limited to 'llvm/tools/llvm2cpp/CppWriter.cpp')
-rw-r--r-- | llvm/tools/llvm2cpp/CppWriter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/llvm2cpp/CppWriter.cpp b/llvm/tools/llvm2cpp/CppWriter.cpp index 9fec9c1ba17..d0a02bfa0e4 100644 --- a/llvm/tools/llvm2cpp/CppWriter.cpp +++ b/llvm/tools/llvm2cpp/CppWriter.cpp @@ -1452,7 +1452,7 @@ void CppWriter::printFunctionHead(const Function* F) { 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::printFunctionHead(const Function* F) { } 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 @@ void CppWriter::printInline(const std::string& fname, const std::string& func) { 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 @@ void CppWriter::printModuleBody() { 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) << "{"; |