simplify this by using SmallString::str(), much nicer!
authorChris Lattner <sabre@nondot.org>
Thu, 3 Sep 2009 03:54:02 +0000 (03:54 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 3 Sep 2009 03:54:02 +0000 (03:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80874 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/AsmPrinter/X86MCInstLower.cpp

index 2f0b959156b927e62799e4da981592f2a185a627..77b0d3593312ef6c069d7f3569cf96fc06606717 100644 (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());
 }