Simplify some uses of Value::getName()

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76786 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2009-07-22 21:10:12 +00:00
parent b834a7b73c
commit 8f60302ee5
3 changed files with 7 additions and 4 deletions

View File

@@ -1924,7 +1924,7 @@ bool CWriter::doInitialization(Module &M) {
Out << " __HIDDEN__";
if (I->hasName() && I->getName()[0] == 1)
Out << " LLVM_ASM(\"" << I->getName().c_str()+1 << "\")";
Out << " LLVM_ASM(\"" << I->getName().substr(1) << "\")";
Out << ";\n";
}