diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-02-02 23:37:42 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-02-02 23:37:42 +0000 |
| commit | 8d2970ba91fc2161bf5fc3d073a59cd4f3dc45a6 (patch) | |
| tree | e5b0843d0c8a5259a3b6b640c6a43ff8e7ddc440 /lib/MC/MCAsmStreamer.cpp | |
| parent | 49bcb0d4210cccd510c0408d078f38ce5129d7cc (diff) | |
| download | external_llvm-8d2970ba91fc2161bf5fc3d073a59cd4f3dc45a6.zip external_llvm-8d2970ba91fc2161bf5fc3d073a59cd4f3dc45a6.tar.gz external_llvm-8d2970ba91fc2161bf5fc3d073a59cd4f3dc45a6.tar.bz2 | |
refactor code so that LLVMTargetMachine creates the asmstreamer and
mccontext instead of having AsmPrinter do it. This allows other
types of MCStreamer's to be passed in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95155 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAsmStreamer.cpp')
| -rw-r--r-- | lib/MC/MCAsmStreamer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp index b544d04..f3a2223 100644 --- a/lib/MC/MCAsmStreamer.cpp +++ b/lib/MC/MCAsmStreamer.cpp @@ -47,7 +47,6 @@ public: bool isLittleEndian() const { return IsLittleEndian; } - inline void EmitEOL() { // If we don't have any comments, just emit a \n. if (!IsVerboseAsm) { @@ -57,6 +56,10 @@ public: EmitCommentsAndEOL(); } void EmitCommentsAndEOL(); + + /// isVerboseAsm - Return true if this streamer supports verbose assembly at + /// all. + virtual bool isVerboseAsm() const { return IsVerboseAsm; } /// AddComment - Add a comment that can be emitted to the generated .s /// file if applicable as a QoI issue to make the output of the compiler |
