forked from OSchip/llvm-project
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:
parent
f57119bc21
commit
36bc519a7f
|
@ -144,6 +144,8 @@ public:
|
|||
Operands.push_back(Op);
|
||||
}
|
||||
|
||||
void clear() { Operands.clear(); }
|
||||
|
||||
void print(raw_ostream &OS, const MCAsmInfo *MAI) const;
|
||||
void dump() const;
|
||||
|
||||
|
|
Loading…
Reference in New Issue