summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
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
commitd8c5b4e8ef1c662e73a5f89c1b204d95a71c81f6 (patch)
tree896e6edd89021509ca32e41be87d6eea6a0bd7bf /llvm/lib/CodeGen/AsmPrinter/DIE.cpp
parentddac15108ab565d4f9860becb6e99f259241798a (diff)
downloadbcm5719-llvm-d8c5b4e8ef1c662e73a5f89c1b204d95a71c81f6.tar.gz
bcm5719-llvm-d8c5b4e8ef1c662e73a5f89c1b204d95a71c81f6.zip
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. llvm-svn: 193378
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DIE.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
index f9110c00c37..f9bf8b98a60 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud