diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-18 00:37:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-18 00:37:40 +0000 |
commit | c8f7717808df07c096107cb397a91e0772bca028 (patch) | |
tree | 821c507e5c81b993a84883aa5cd7e6461b686417 /llvm/lib/MC/MCInst.cpp | |
parent | fae53f0c61224864bb8f5a3815d1b4317b1ddf5c (diff) | |
download | bcm5719-llvm-c8f7717808df07c096107cb397a91e0772bca028.tar.gz bcm5719-llvm-c8f7717808df07c096107cb397a91e0772bca028.zip |
remove the MAI argument to MCExpr::print and switch overthing to use << when printing them.
llvm-svn: 93699
Diffstat (limited to 'llvm/lib/MC/MCInst.cpp')
-rw-r--r-- | llvm/lib/MC/MCInst.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCInst.cpp b/llvm/lib/MC/MCInst.cpp index 7c7a6447736..0634c9faf6f 100644 --- a/llvm/lib/MC/MCInst.cpp +++ b/llvm/lib/MC/MCInst.cpp @@ -23,9 +23,7 @@ void MCOperand::print(raw_ostream &OS, const MCAsmInfo *MAI) const { else if (isImm()) OS << "Imm:" << getImm(); else if (isExpr()) { - OS << "Expr:("; - getExpr()->print(OS, MAI); - OS << ")"; + OS << "Expr:(" << *getExpr() << ")"; } else OS << "UNDEFINED"; OS << ">"; |