summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCInst.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-03 05:46:51 +0000
committerChris Lattner <sabre@nondot.org>2009-09-03 05:46:51 +0000
commit684c593d05db0bd277268fc9d8c05bce138c745a (patch)
treebd14333e8ed905f9665b6df0ed1165d19b77acf8 /include/llvm/MC/MCInst.h
parent5c5ce5cef4a9f09f5b25e08df1e0dd6c79908c0f (diff)
downloadllvm-684c593d05db0bd277268fc9d8c05bce138c745a.tar.gz
llvm-684c593d05db0bd277268fc9d8c05bce138c745a.tar.bz2
llvm-684c593d05db0bd277268fc9d8c05bce138c745a.tar.xz
Thread an MCAsmInfo pointer through the various MC printing APIs,
and fix a few things using << on MCSymbols to use ->print(). No functionality change other than unbreaking my previous patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80890 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCInst.h')
-rw-r--r--include/llvm/MC/MCInst.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h
index 7c1cb136d6..a6bd45b493 100644
--- a/include/llvm/MC/MCInst.h
+++ b/include/llvm/MC/MCInst.h
@@ -22,6 +22,7 @@
namespace llvm {
class raw_ostream;
+class MCAsmInfo;
class MCExpr;
/// MCOperand - Instances of this class represent operands of the MCInst class.
@@ -121,7 +122,7 @@ public:
return Op;
}
- void print(raw_ostream &OS) const;
+ void print(raw_ostream &OS, const MCAsmInfo *MAI) const;
void dump() const;
};
@@ -147,7 +148,7 @@ public:
Operands.push_back(Op);
}
- void print(raw_ostream &OS) const;
+ void print(raw_ostream &OS, const MCAsmInfo *MAI) const;
void dump() const;
};