mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user