diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-16 16:28:37 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-16 16:28:37 +0000 |
commit | 640f8f65a73a89d4eda7c42de0e7332fae886c14 (patch) | |
tree | 13bb54eaede3f560117a2ed19c54b5a836e319a4 /include/llvm | |
parent | 1a6226f236c102bba93162f0f1947f888ecbfec8 (diff) | |
download | llvm-640f8f65a73a89d4eda7c42de0e7332fae886c14.tar.gz llvm-640f8f65a73a89d4eda7c42de0e7332fae886c14.tar.bz2 llvm-640f8f65a73a89d4eda7c42de0e7332fae886c14.tar.xz |
Add an emitRawComment function and use it to simplify some uses of EmitRawText.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199397 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/MC/MCStreamer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h index fb94f9d5ff..78bb729eda 100644 --- a/include/llvm/MC/MCStreamer.h +++ b/include/llvm/MC/MCStreamer.h @@ -217,6 +217,12 @@ public: /// use this method. virtual raw_ostream &GetCommentOS(); + /// Print T and prefix it with the comment string (normally #) and optionally + /// a tab. This prints the comment immediately, not at the end of the + /// current line. It is basically a safe version of EmitRawText: since it + /// only prints comments, the object streamer ignores it instead of asserting. + virtual void emitRawComment(const Twine &T, bool TabPrefix = true); + /// AddBlankLine - Emit a blank line to a .s file to pretty it up. virtual void AddBlankLine() {} |