summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenInstruction.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-04-17 22:24:13 +0000
committerChris Lattner <sabre@nondot.org>2011-04-17 22:24:13 +0000
commit9080391b5591e3a0647a5b0a26c404246f726f65 (patch)
tree6cbbb83868f3eef5185384fc9c70b2dab8b4875a /llvm/utils/TableGen/CodeGenInstruction.h
parent0d7a5a7daad34fa9de07e5987272e77347aaf502 (diff)
downloadbcm5719-llvm-9080391b5591e3a0647a5b0a26c404246f726f65.tar.gz
bcm5719-llvm-9080391b5591e3a0647a5b0a26c404246f726f65.zip
change OperandsSignature to use SmallVector<char> instead of std::vector<string>
since the strings are always exactly one character, and there are usually only 2-3 operands. llvm-svn: 129678
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.h')
-rw-r--r--llvm/utils/TableGen/CodeGenInstruction.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.h b/llvm/utils/TableGen/CodeGenInstruction.h
index 6d2d8fba0cf..5f1e0bea766 100644
--- a/llvm/utils/TableGen/CodeGenInstruction.h
+++ b/llvm/utils/TableGen/CodeGenInstruction.h
@@ -137,6 +137,7 @@ namespace llvm {
bool isVariadic;
// Provide transparent accessors to the operand list.
+ bool empty() const { return OperandList.empty(); }
unsigned size() const { return OperandList.size(); }
const OperandInfo &operator[](unsigned i) const { return OperandList[i]; }
OperandInfo &operator[](unsigned i) { return OperandList[i]; }
OpenPOWER on IntegriCloud