simplify this by using SmallString::str(), much nicer!

llvm-svn: 80874
This commit is contained in:
Chris Lattner 2009-09-03 03:54:02 +00:00
parent 17a0296a09
commit 620713c5b4
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ MCSymbol *X86ATTAsmPrinter::GetPICBaseSymbol() {
assert(Subtarget->isTargetELF() && "Don't know how to print PIC label!");
raw_svector_ostream(Name) << ".Lllvm$" << getFunctionNumber()<<".$piclabel";
}
return OutContext.GetOrCreateSymbol(StringRef(Name.data(), Name.size()));
return OutContext.GetOrCreateSymbol(Name.str());
}