aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCStreamer.h
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 /include/llvm/MC/MCStreamer.h
parent07d5aef3057b2e403b20d683e7477c93fde67d99 (diff)
downloadexternal_llvm-5759c3a02902026a27a0d1bc24a5bad85f52bd71.zip
external_llvm-5759c3a02902026a27a0d1bc24a5bad85f52bd71.tar.gz
external_llvm-5759c3a02902026a27a0d1bc24a5bad85f52bd71.tar.bz2
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 'include/llvm/MC/MCStreamer.h')
-rw-r--r--include/llvm/MC/MCStreamer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h
index 974feea..47d798d 100644
--- a/include/llvm/MC/MCStreamer.h
+++ b/include/llvm/MC/MCStreamer.h
@@ -149,6 +149,8 @@ protected:
}
void EmitW64Tables();
+ virtual void EmitRawTextImpl(StringRef String);
+
public:
virtual ~MCStreamer();
@@ -657,7 +659,6 @@ public:
/// EmitRawText - If this file is backed by a assembly streamer, this dumps
/// the specified string in the output .s file. This capability is
/// indicated by the hasRawTextSupport() predicate. By default this aborts.
- virtual void EmitRawText(StringRef String);
void EmitRawText(const Twine &String);
/// Flush - Causes any cached state to be written out.