aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Pass.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
commit5cbf985dcbc89fba3208e7baf8b6f488b06d3ec9 (patch)
tree7207871f6b243dd1575dd474b14ed7e05be6b9e7 /lib/VMCore/Pass.cpp
parent2574fe5a226e9806cde064b0919c461babc3bf29 (diff)
downloadexternal_llvm-5cbf985dcbc89fba3208e7baf8b6f488b06d3ec9.zip
external_llvm-5cbf985dcbc89fba3208e7baf8b6f488b06d3ec9.tar.gz
external_llvm-5cbf985dcbc89fba3208e7baf8b6f488b06d3ec9.tar.bz2
For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoid
confusion with external linkage types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33663 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Pass.cpp')
-rw-r--r--lib/VMCore/Pass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Pass.cpp b/lib/VMCore/Pass.cpp
index 3f3dbdf..2e27015 100644
--- a/lib/VMCore/Pass.cpp
+++ b/lib/VMCore/Pass.cpp
@@ -76,7 +76,7 @@ bool FunctionPass::runOnModule(Module &M) {
bool Changed = doInitialization(M);
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
- if (!I->isExternal()) // Passes are not run on external functions!
+ if (!I->isDeclaration()) // Passes are not run on external functions!
Changed |= runOnFunction(*I);
return Changed | doFinalization(M);
@@ -85,7 +85,7 @@ bool FunctionPass::runOnModule(Module &M) {
// run - On a function, we simply initialize, run the function, then finalize.
//
bool FunctionPass::run(Function &F) {
- if (F.isExternal()) return false;// Passes are not run on external functions!
+ if (F.isDeclaration()) return false;// Passes are not run on external functions!
bool Changed = doInitialization(*F.getParent());
Changed |= runOnFunction(F);