diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-22 19:52:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-22 19:52:01 +0000 |
commit | c006e1cc781b854bf6a8ebda79c222dc745753bb (patch) | |
tree | c212e8022207d8b572289cc773e76d74d04713f0 /include/llvm/MC/MCStreamer.h | |
parent | 32db11a5f1039df46ea5298a1722a076ff50142f (diff) | |
download | external_llvm-c006e1cc781b854bf6a8ebda79c222dc745753bb.zip external_llvm-c006e1cc781b854bf6a8ebda79c222dc745753bb.tar.gz external_llvm-c006e1cc781b854bf6a8ebda79c222dc745753bb.tar.bz2 |
Convert some more random-comment-printing stuff to use
AddComment and GetCommentOS. Add a blank line between globals
(even in non-verbose mode) to make the assembly more readable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94202 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCStreamer.h')
-rw-r--r-- | include/llvm/MC/MCStreamer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h index 0842a24..bd21ec5 100644 --- a/include/llvm/MC/MCStreamer.h +++ b/include/llvm/MC/MCStreamer.h @@ -81,6 +81,9 @@ namespace llvm { MCContext &getContext() const { return Context; } + /// @name Assembly File Formatting. + /// @{ + /// 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 /// more readable. This only affects the MCAsmStreamer, and only when @@ -95,6 +98,11 @@ namespace llvm { /// use this method. virtual raw_ostream &GetCommentOS(); + /// AddBlankLine - Emit a blank line to a .s file to pretty it up. + virtual void AddBlankLine() {} + + /// @} + /// @name Symbol & Section Management /// @{ |