diff options
author | Kevin Enderby <enderby@apple.com> | 2012-10-23 22:52:52 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2012-10-23 22:52:52 +0000 |
commit | e1d4a8813427b76c5f59cf5b70a9df734b7e9284 (patch) | |
tree | a20c95c84240baea4d82d5839d641373b28c4ead /include | |
parent | 0787274b70e718af737bd3c0f427574acd829810 (diff) | |
download | llvm-e1d4a8813427b76c5f59cf5b70a9df734b7e9284.tar.gz llvm-e1d4a8813427b76c5f59cf5b70a9df734b7e9284.tar.bz2 llvm-e1d4a8813427b76c5f59cf5b70a9df734b7e9284.tar.xz |
Make branch heavy code for generating marked up disassembly simpler
and easier to read by adding a couple helper functions. Suggestion by
Chandler Carruth and seconded by Meador Inge!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCInstPrinter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/MC/MCInstPrinter.h b/include/llvm/MC/MCInstPrinter.h index f17c347050..3b9420a403 100644 --- a/include/llvm/MC/MCInstPrinter.h +++ b/include/llvm/MC/MCInstPrinter.h @@ -66,6 +66,10 @@ public: bool getUseMarkup() const { return UseMarkup; } void setUseMarkup(bool Value) { UseMarkup = Value; } + + /// Utility functions to make adding mark ups simpler. + StringRef markup(StringRef s) const; + StringRef markup(StringRef a, StringRef b) const; }; } // namespace llvm |