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 | b0d44c38077d620ff69265ec0ccd9a2c8aa39b7a (patch) | |
tree | 599bc831e1b54f8fffd45fb217e6b52519247efd /llvm/lib/MC/MCAsmStreamer.cpp | |
parent | e67d01a9a8dbf25ba502411ac7319be3e6789e0e (diff) | |
download | bcm5719-llvm-b0d44c38077d620ff69265ec0ccd9a2c8aa39b7a.tar.gz bcm5719-llvm-b0d44c38077d620ff69265ec0ccd9a2c8aa39b7a.zip |
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.
llvm-svn: 95155
Diffstat (limited to 'llvm/lib/MC/MCAsmStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCAsmStreamer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp index b544d04f14f..f3a2223dc7d 100644 --- a/llvm/lib/MC/MCAsmStreamer.cpp +++ b/llvm/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 |