commit | 862164990329cfcc3dc83d595cb8304913f1218d | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Sep 03 03:54:02 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Sep 03 03:54:02 2009 +0000 |
tree | c02e94d02eaf14926c43efac500db8bc217b0cf1 | |
parent | e86b0df8fc92fdeb05d03897afe4802ee5108dae [diff] [blame] |
simplify this by using SmallString::str(), much nicer! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80874 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp b/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp index 2f0b959..77b0d35 100644 --- a/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp +++ b/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp
@@ -35,7 +35,7 @@ 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()); }