For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoid
confusion with external linkage types.

llvm-svn: 33663
diff --git a/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp b/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp
index 037fef1..e4eb6e4 100644
--- a/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp
+++ b/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp
@@ -177,7 +177,7 @@
         // because they live in a runtime library somewhere and were (probably)
         // not compiled by LLVM.  So, we only act on external functions that
         // have external or dllimport linkage and non-empty uses.
-        if (!FI->isExternal() ||
+        if (!FI->isDeclaration() ||
             !(FI->hasExternalLinkage() || FI->hasDLLImportLinkage()) ||
             FI->use_empty())
           continue;