Simplify some uses of Value::getName()
[oota-llvm.git] / lib / Target / CBackend / CBackend.cpp
index 4f0a5a8b4ec3dddfae9820f0e342850a6051afb2..d49a02397bff98d9d43d9c6cad99f42c08808f19 100644 (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";
     }