[llvm-commits] CVS: llvm/lib/Target/CBackend/CBackend.cpp
Reid Spencer
reid at x10sys.com
Tue Jan 30 12:09:06 PST 2007
Changes in directory llvm/lib/Target/CBackend:
CBackend.cpp updated: 1.322 -> 1.323
---
Log message:
For PR1136: http://llvm.org/PR1136 : Rename GlobalVariable::isExternal as isDeclaration to avoid
confusion with external linkage types.
---
Diffs of the changes: (+5 -5)
CBackend.cpp | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
Index: llvm/lib/Target/CBackend/CBackend.cpp
diff -u llvm/lib/Target/CBackend/CBackend.cpp:1.322 llvm/lib/Target/CBackend/CBackend.cpp:1.323
--- llvm/lib/Target/CBackend/CBackend.cpp:1.322 Mon Jan 29 11:50:30 2007
+++ llvm/lib/Target/CBackend/CBackend.cpp Tue Jan 30 14:08:37 2007
@@ -305,7 +305,7 @@
std::map<std::string, GlobalValue*> ExtSymbols;
for (Module::iterator I = M.begin(), E = M.end(); I != E;) {
Function *GV = I++;
- if (GV->isExternal() && GV->hasName()) {
+ if (GV->isDeclaration() && GV->hasName()) {
std::pair<std::map<std::string, GlobalValue*>::iterator, bool> X
= ExtSymbols.insert(std::make_pair(GV->getName(), GV));
if (!X.second) {
@@ -321,7 +321,7 @@
for (Module::global_iterator I = M.global_begin(), E = M.global_end();
I != E;) {
GlobalVariable *GV = I++;
- if (GV->isExternal() && GV->hasName()) {
+ if (GV->isDeclaration() && GV->hasName()) {
std::pair<std::map<std::string, GlobalValue*>::iterator, bool> X
= ExtSymbols.insert(std::make_pair(GV->getName(), GV));
if (!X.second) {
@@ -1525,7 +1525,7 @@
Out << "\n\n/* Global Variable Declarations */\n";
for (Module::global_iterator I = M.global_begin(), E = M.global_end();
I != E; ++I)
- if (!I->isExternal()) {
+ if (!I->isDeclaration()) {
// Ignore special globals, such as debug info.
if (getGlobalVariableClass(I))
continue;
@@ -1554,7 +1554,7 @@
Out << "\n\n/* Global Variable Definitions and Initialization */\n";
for (Module::global_iterator I = M.global_begin(), E = M.global_end();
I != E; ++I)
- if (!I->isExternal()) {
+ if (!I->isDeclaration()) {
// Ignore special globals, such as debug info.
if (getGlobalVariableClass(I))
continue;
@@ -1777,7 +1777,7 @@
FunctionInnards << Mang->getValueName(F) << '(';
bool PrintedArg = false;
- if (!F->isExternal()) {
+ if (!F->isDeclaration()) {
if (!F->arg_empty()) {
Function::const_arg_iterator I = F->arg_begin(), E = F->arg_end();
More information about the llvm-commits
mailing list