summaryrefslogtreecommitdiff
path: root/include/llvm/MC
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-31 08:07:33 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-31 08:07:33 +0000
commit87392fde1f261fea161b48886fafbedddb18dcce (patch)
tree8a6431ab5aaf41976028f8100930f3347345c2f6 /include/llvm/MC
parent9643ac55142d40da404caa8e5fedfef2cd7b4afc (diff)
downloadllvm-87392fde1f261fea161b48886fafbedddb18dcce.tar.gz
llvm-87392fde1f261fea161b48886fafbedddb18dcce.tar.bz2
llvm-87392fde1f261fea161b48886fafbedddb18dcce.tar.xz
llvm-mc: Add MCExpr::{dump,print}.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
-rw-r--r--include/llvm/MC/MCExpr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/MC/MCExpr.h b/include/llvm/MC/MCExpr.h
index 9215de6d0e..9f9f2670f3 100644
--- a/include/llvm/MC/MCExpr.h
+++ b/include/llvm/MC/MCExpr.h
@@ -17,6 +17,7 @@ namespace llvm {
class MCContext;
class MCSymbol;
class MCValue;
+class raw_ostream;
/// MCExpr - Base class for the full range of assembler expressions which are
/// needed for parsing.
@@ -45,6 +46,13 @@ public:
ExprKind getKind() const { return Kind; }
/// @}
+ /// @name Utility Methods
+ /// @{
+
+ void print(raw_ostream &OS) const;
+ void dump() const;
+
+ /// @}
/// @name Expression Evaluation
/// @{