simplify this by using SmallString::str(), much nicer!
llvm-svn: 80874
This commit is contained in:
parent
17a0296a09
commit
620713c5b4
|
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue