diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-17 21:43:43 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-17 21:43:43 +0000 |
| commit | 8b5d55ed065cb070540b7be09a67181206fdd58e (patch) | |
| tree | 48f540ac6bd4f7a9a56409a25b562552366dcd7c /llvm/include | |
| parent | 043e656797eb6037117cce42fd73aec73e03ca5c (diff) | |
| download | bcm5719-llvm-8b5d55ed065cb070540b7be09a67181206fdd58e.tar.gz bcm5719-llvm-8b5d55ed065cb070540b7be09a67181206fdd58e.zip | |
now that MCSymbol::print doesn't use it's MAI argument, we can
remove it and change all the code that prints MCSymbols to use
<< instead, which is much simpler and cleaner.
llvm-svn: 93695
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/MC/MCSymbol.h | 7 | ||||
| -rw-r--r-- | llvm/include/llvm/MC/MCValue.h | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/llvm/include/llvm/MC/MCSymbol.h b/llvm/include/llvm/MC/MCSymbol.h index c84babac4a9..e77060415f7 100644 --- a/llvm/include/llvm/MC/MCSymbol.h +++ b/llvm/include/llvm/MC/MCSymbol.h @@ -19,7 +19,6 @@ #include "llvm/System/DataTypes.h" namespace llvm { - class MCAsmInfo; class MCExpr; class MCSection; class MCContext; @@ -133,12 +132,16 @@ namespace llvm { /// @} /// print - Print the value to the stream \arg OS. - void print(raw_ostream &OS, const MCAsmInfo *MAI) const; + void print(raw_ostream &OS) const; /// dump - Print the value to stderr. void dump() const; }; + inline raw_ostream &operator<<(raw_ostream &OS, const MCSymbol &Sym) { + Sym.print(OS); + return OS; + } } // end namespace llvm #endif diff --git a/llvm/include/llvm/MC/MCValue.h b/llvm/include/llvm/MC/MCValue.h index 4f5ab314aa3..8aa73f350f0 100644 --- a/llvm/include/llvm/MC/MCValue.h +++ b/llvm/include/llvm/MC/MCValue.h @@ -20,6 +20,7 @@ namespace llvm { class MCSymbol; +class MCAsmInfo; class raw_ostream; /// MCValue - This represents an "assembler immediate". In its most general |

