1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Add a clear() operation to MCInst, to drop all of its operands. Useful for the disassembler, where we may realize fairly late into decoding that something is wrong and need to reset.

llvm-svn: 136634
This commit is contained in:
Owen Anderson 2011-08-01 18:43:18 +00:00
parent 2cd07cf351
commit 4ee266955a

View File

@ -144,6 +144,8 @@ public:
Operands.push_back(Op); Operands.push_back(Op);
} }
void clear() { Operands.clear(); }
void print(raw_ostream &OS, const MCAsmInfo *MAI) const; void print(raw_ostream &OS, const MCAsmInfo *MAI) const;
void dump() const; void dump() const;