summaryrefslogtreecommitdiff
path: root/utils/TableGen/Record.h
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2010-01-05 19:11:42 +0000
committerDavid Greene <greened@obbligato.org>2010-01-05 19:11:42 +0000
commit6786d5e18387465d6106eaef0b7923526ef0bc10 (patch)
tree3665a60a078ae910aeff79fc75a4c8eb9f918781 /utils/TableGen/Record.h
parent5f7775c85e60aa659ac76c4b18f7a1f6494f23e2 (diff)
downloadllvm-6786d5e18387465d6106eaef0b7923526ef0bc10.tar.gz
llvm-6786d5e18387465d6106eaef0b7923526ef0bc10.tar.bz2
llvm-6786d5e18387465d6106eaef0b7923526ef0bc10.tar.xz
Add an !eq() operator to TableGen. It operates on strings only.
Use !cast<string>() to compare other types of objects. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92754 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.h')
-rw-r--r--utils/TableGen/Record.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h
index 278c349dd6..45f3072ff0 100644
--- a/utils/TableGen/Record.h
+++ b/utils/TableGen/Record.h
@@ -842,7 +842,7 @@ public:
///
class BinOpInit : public OpInit {
public:
- enum BinaryOp { SHL, SRA, SRL, STRCONCAT, CONCAT, NAMECONCAT };
+ enum BinaryOp { SHL, SRA, SRL, STRCONCAT, CONCAT, NAMECONCAT, EQ };
private:
BinaryOp Opc;
Init *LHS, *RHS;