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

Chris Lattner lattner at cs.uiuc.edu
Sat Mar 5 11:05:37 PST 2005



Changes in directory llvm/lib/Transforms/Utils:

BasicBlockUtils.cpp updated: 1.11 -> 1.12
---
Log message:

second argument to Value::setName is now gone.


---
Diffs of the changes:  (+3 -3)

 BasicBlockUtils.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
diff -u llvm/lib/Transforms/Utils/BasicBlockUtils.cpp:1.11 llvm/lib/Transforms/Utils/BasicBlockUtils.cpp:1.12
--- llvm/lib/Transforms/Utils/BasicBlockUtils.cpp:1.11	Thu Jul 29 12:21:57 2004
+++ llvm/lib/Transforms/Utils/BasicBlockUtils.cpp	Sat Mar  5 13:05:20 2005
@@ -34,9 +34,9 @@
   // Delete the unnecessary instruction now...
   BI = BIL.erase(BI);
 
-  // Make sure to propagate a name if there is one already...
-  if (OldName.size() && !V->hasName())
-    V->setName(OldName, &BIL.getParent()->getSymbolTable());
+  // Make sure to propagate a name if there is one already.
+  if (!OldName.empty() && !V->hasName())
+    V->setName(OldName);
 }
 
 






More information about the llvm-commits mailing list