[llvm-commits] CVS: llvm/lib/Transforms/Utils/CloneModule.cpp InlineFunction.cpp

Reid Spencer reid at x10sys.com
Tue Jan 30 12:10:10 PST 2007



Changes in directory llvm/lib/Transforms/Utils:

CloneModule.cpp updated: 1.20 -> 1.21
InlineFunction.cpp updated: 1.49 -> 1.50
---
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)

 CloneModule.cpp    |    2 +-
 InlineFunction.cpp |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Transforms/Utils/CloneModule.cpp
diff -u llvm/lib/Transforms/Utils/CloneModule.cpp:1.20 llvm/lib/Transforms/Utils/CloneModule.cpp:1.21
--- llvm/lib/Transforms/Utils/CloneModule.cpp:1.20	Fri Jan 26 02:11:39 2007
+++ llvm/lib/Transforms/Utils/CloneModule.cpp	Tue Jan 30 14:08:38 2007
@@ -87,7 +87,7 @@
   //
   for (Module::const_iterator I = M->begin(), E = M->end(); I != E; ++I) {
     Function *F = cast<Function>(ValueMap[I]);
-    if (!I->isExternal()) {
+    if (!I->isDeclaration()) {
       Function::arg_iterator DestI = F->arg_begin();
       for (Function::const_arg_iterator J = I->arg_begin(); J != I->arg_end();
            ++J) {


Index: llvm/lib/Transforms/Utils/InlineFunction.cpp
diff -u llvm/lib/Transforms/Utils/InlineFunction.cpp:1.49 llvm/lib/Transforms/Utils/InlineFunction.cpp:1.50
--- llvm/lib/Transforms/Utils/InlineFunction.cpp:1.49	Sun Jan  7 01:54:34 2007
+++ llvm/lib/Transforms/Utils/InlineFunction.cpp	Tue Jan 30 14:08:38 2007
@@ -184,7 +184,7 @@
 
   const Function *CalledFunc = CS.getCalledFunction();
   if (CalledFunc == 0 ||          // Can't inline external function or indirect
-      CalledFunc->isExternal() || // call, or call to a vararg function!
+      CalledFunc->isDeclaration() || // call, or call to a vararg function!
       CalledFunc->getFunctionType()->isVarArg()) return false;
 
 






More information about the llvm-commits mailing list