mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user