diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-10-16 11:28:23 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-10-16 11:28:23 +0000 |
commit | 1dc34b48dd20759ed6d73f8981d3e03ea988f59b (patch) | |
tree | d0ebb38eaeb31b4b7076349ea8219960f5bcd66b /llvm/lib/AsmParser/LLParser.cpp | |
parent | 0d14b5b0fa7b742126b62fe2554a786f2be2e9fd (diff) | |
download | bcm5719-llvm-1dc34b48dd20759ed6d73f8981d3e03ea988f59b.tar.gz bcm5719-llvm-1dc34b48dd20759ed6d73f8981d3e03ea988f59b.zip |
Eliminate some calls to Value::getNameStr.
llvm-svn: 116670
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index 9efa7729253..403fdd4527d 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -675,7 +675,7 @@ bool LLParser::ParseAlias(const std::string &Name, LocTy NameLoc, // Insert into the module, we know its name won't collide now. M->getAliasList().push_back(GA); - assert(GA->getNameStr() == Name && "Should not be a name conflict!"); + assert(GA->getName() == Name && "Should not be a name conflict!"); return false; } @@ -1925,7 +1925,7 @@ bool LLParser::PerFunctionState::SetInstName(int NameID, // Set the name on the instruction. Inst->setName(NameStr); - if (Inst->getNameStr() != NameStr) + if (Inst->getName() != NameStr) return P.Error(NameLoc, "multiple definition of local value named '" + NameStr + "'"); return false; @@ -2858,7 +2858,7 @@ bool LLParser::ParseFunctionHeader(Function *&Fn, bool isDefine) { // Set the name, if it conflicted, it will be auto-renamed. ArgIt->setName(ArgList[i].Name); - if (ArgIt->getNameStr() != ArgList[i].Name) + if (ArgIt->getName() != ArgList[i].Name) return Error(ArgList[i].Loc, "redefinition of argument '%" + ArgList[i].Name + "'"); } |