aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-08-03 21:52:15 +0000
committerOwen Anderson <resistor@mac.com>2011-08-03 21:52:15 +0000
commit56cb3e3ccbc766086841d04fb8f136c7b4718dd5 (patch)
treedf4e1e1201bc9e8d039471b0db77e1f7dc4900d1 /include/llvm
parent8ea45231dc6c30d0c4a55ce038a08edccc308a73 (diff)
downloadexternal_llvm-56cb3e3ccbc766086841d04fb8f136c7b4718dd5.zip
external_llvm-56cb3e3ccbc766086841d04fb8f136c7b4718dd5.tar.gz
external_llvm-56cb3e3ccbc766086841d04fb8f136c7b4718dd5.tar.bz2
Add accessors for manipulating an MCInst's operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136818 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/MC/MCInst.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h
index 5d34cce..d384764 100644
--- a/include/llvm/MC/MCInst.h
+++ b/include/llvm/MC/MCInst.h
@@ -145,6 +145,14 @@ public:
}
void clear() { Operands.clear(); }
+ size_t size() { return Operands.size(); }
+
+ typedef SmallVector<MCOperand, 8>::iterator iterator;
+ iterator begin() { return Operands.begin(); }
+ iterator end() { return Operands.end(); }
+ iterator insert(iterator I, const MCOperand &Op) {
+ return Operands.insert(I, Op);
+ }
void print(raw_ostream &OS, const MCAsmInfo *MAI) const;
void dump() const;