[llvm-commits] CVS: llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
Reid Spencer
reid at x10sys.com
Tue Jan 30 12:10:10 PST 2007
Changes in directory llvm/lib/Bytecode/Reader:
ReaderWrappers.cpp updated: 1.61 -> 1.62
---
Log message:
For PR1136: http://llvm.org/PR1136 : Rename GlobalVariable::isExternal as isDeclaration to avoid
confusion with external linkage types.
---
Diffs of the changes: (+2 -2)
ReaderWrappers.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
diff -u llvm/lib/Bytecode/Reader/ReaderWrappers.cpp:1.61 llvm/lib/Bytecode/Reader/ReaderWrappers.cpp:1.62
--- llvm/lib/Bytecode/Reader/ReaderWrappers.cpp:1.61 Sun Jan 7 00:45:57 2007
+++ llvm/lib/Bytecode/Reader/ReaderWrappers.cpp Tue Jan 30 14:08:37 2007
@@ -298,13 +298,13 @@
static void getSymbols(Module*M, std::vector<std::string>& symbols) {
// Loop over global variables
for (Module::global_iterator GI = M->global_begin(), GE=M->global_end(); GI != GE; ++GI)
- if (!GI->isExternal() && !GI->hasInternalLinkage())
+ if (!GI->isDeclaration() && !GI->hasInternalLinkage())
if (!GI->getName().empty())
symbols.push_back(GI->getName());
// Loop over functions.
for (Module::iterator FI = M->begin(), FE = M->end(); FI != FE; ++FI)
- if (!FI->isExternal() && !FI->hasInternalLinkage())
+ if (!FI->isDeclaration() && !FI->hasInternalLinkage())
if (!FI->getName().empty())
symbols.push_back(FI->getName());
}
More information about the llvm-commits
mailing list