second argument to Value::setName is now gone.
authorChris Lattner <sabre@nondot.org>
Sat, 5 Mar 2005 19:05:20 +0000 (19:05 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 5 Mar 2005 19:05:20 +0000 (19:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20463 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/Reader.cpp
lib/Transforms/LevelRaise.cpp
lib/Transforms/Utils/BasicBlockUtils.cpp

index 0b3cadf08598ba342e671f9d7f801a410ac4138d..7eede0e1d4ddd005e88e15aab75de2bdf2231c58 100644 (file)
@@ -1063,7 +1063,7 @@ void BytecodeReader::ParseSymbolTable(Function *CurrentFunction,
         }
         if (V == 0)
           error("Failed value look-up for name '" + Name + "'");
-        V->setName(Name, ST);
+        V->setName(Name);
       }
     }
   }
index ebd9829b4c057c2171bf04b305022758f40931bd..a3b8a9b64d80142d31381187508514c5d19cba0e 100644 (file)
@@ -253,7 +253,7 @@ bool RPR::PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) {
       if (!Src->hasName() && CI->hasName()) {
         std::string Name = CI->getName();
         CI->setName("");
-        Src->setName(Name, &BB->getParent()->getSymbolTable());
+        Src->setName(Name);
       }
 
       // DCE the instruction now, to avoid having the iterative version of DCE
index ab315b6b756eec54aeb92e014c92b4d5ffdfa06d..bf1e3612b2617aaa182b9eb254154a870b7c9037 100644 (file)
@@ -34,9 +34,9 @@ void llvm::ReplaceInstWithValue(BasicBlock::InstListType &BIL,
   // 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);
 }