summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt/AnalysisWrappers.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-30 20:08:39 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-30 20:08:39 +0000
commit5301e7c60569c5ab22b113a5828fdb348796a680 (patch)
treefd57924623a8f84c4a8b765d5f090bfbde72efb8 /llvm/tools/opt/AnalysisWrappers.cpp
parent3a0bbb0a4d757c665979689cee9a874dfb8e6353 (diff)
downloadbcm5719-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/opt/AnalysisWrappers.cpp')
-rw-r--r--llvm/tools/opt/AnalysisWrappers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/opt/AnalysisWrappers.cpp b/llvm/tools/opt/AnalysisWrappers.cpp
index 728b218fe50..3223b820303 100644
--- a/llvm/tools/opt/AnalysisWrappers.cpp
+++ b/llvm/tools/opt/AnalysisWrappers.cpp
@@ -32,7 +32,7 @@ namespace {
struct ExternalFunctionsPassedConstants : public ModulePass {
virtual bool runOnModule(Module &M) {
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
- if (I->isExternal()) {
+ if (I->isDeclaration()) {
bool PrintedFn = false;
for (Value::use_iterator UI = I->use_begin(), E = I->use_end();
UI != E; ++UI)
OpenPOWER on IntegriCloud