remove the MAI argument to MCExpr::print and switch overthing to use << when printing them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93699 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2010-01-18 00:37:40 +00:00
parent 950558aa23
commit 8cb9a3b13f
9 changed files with 28 additions and 39 deletions

View File

@@ -51,7 +51,7 @@ public:
/// @name Utility Methods
/// @{
void print(raw_ostream &OS, const MCAsmInfo *MAI) const;
void print(raw_ostream &OS) const;
void dump() const;
/// @}
@@ -75,6 +75,11 @@ public:
static bool classof(const MCExpr *) { return true; }
};
inline raw_ostream &operator<<(raw_ostream &OS, const MCExpr &E) {
E.print(OS);
return OS;
}
//// MCConstantExpr - Represent a constant integer expression.
class MCConstantExpr : public MCExpr {