Remove Value::{isName, getNameRef}.

Also, change MDString to use a StringRef.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77098 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2009-07-25 23:55:21 +00:00
parent 460d51e0c0
commit 03d7651c36
15 changed files with 49 additions and 71 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ void ValueSymbolTable::reinsertValue(Value* V) {
}
// Otherwise, there is a naming conflict. Rename this value.
SmallString<128> UniqueName(V->getNameStart(), V->getNameEnd());
SmallString<128> UniqueName(V->getName().begin(), V->getName().end());
// The name is too already used, just free it so we can allocate a new name.
V->Name->Destroy();