summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-10-24 22:43:10 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-10-24 22:43:10 +0000
commit5759c3a02902026a27a0d1bc24a5bad85f52bd71 (patch)
tree9f9b828ebafa2a8e5a7cbf718149fce0f7d10946 /lib/CodeGen/AsmPrinter
parent07d5aef3057b2e403b20d683e7477c93fde67d99 (diff)
downloadllvm-5759c3a02902026a27a0d1bc24a5bad85f52bd71.tar.gz
llvm-5759c3a02902026a27a0d1bc24a5bad85f52bd71.tar.bz2
llvm-5759c3a02902026a27a0d1bc24a5bad85f52bd71.tar.xz
MCStreamer: Reimplement the virtual EmitRawText as a protected member, EmitRawTextImpl, to avoid string literal ambiguities
Also improve the implementation of EmitRawText(Twine) so it doesn't bother using the SmallString buffer if the Twine is a simple StringRef anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter')
-rw-r--r--lib/CodeGen/AsmPrinter/DIE.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIE.cpp b/lib/CodeGen/AsmPrinter/DIE.cpp
index f9110c00c3..f9bf8b98a6 100644
--- a/lib/CodeGen/AsmPrinter/DIE.cpp
+++ b/lib/CodeGen/AsmPrinter/DIE.cpp
@@ -196,7 +196,7 @@ void DIEInteger::EmitValue(AsmPrinter *Asm, dwarf::Form Form) const {
// Emit something to keep the lines and comments in sync.
// FIXME: Is there a better way to do this?
if (Asm->OutStreamer.hasRawTextSupport())
- Asm->OutStreamer.EmitRawText(StringRef(""));
+ Asm->OutStreamer.EmitRawText("");
return;
case dwarf::DW_FORM_flag: // Fall thru
case dwarf::DW_FORM_ref1: // Fall thru