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 | 0fd90fd8d1c2143a763dee509c66a5b3c74088b1 (patch) | |
tree | c212e8022207d8b572289cc773e76d74d04713f0 /include/llvm/MC/MCStreamer.h | |
parent | 7e02e52e9a816a427906a6cf91ba54af2d83518c (diff) | |
download | external_llvm-0fd90fd8d1c2143a763dee509c66a5b3c74088b1.zip external_llvm-0fd90fd8d1c2143a763dee509c66a5b3c74088b1.tar.gz external_llvm-0fd90fd8d1c2143a763dee509c66a5b3c74088b1.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 /// @{ |