diff options
author | David Greene <greened@obbligato.org> | 2010-01-05 19:11:42 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2010-01-05 19:11:42 +0000 |
commit | 6786d5e18387465d6106eaef0b7923526ef0bc10 (patch) | |
tree | 3665a60a078ae910aeff79fc75a4c8eb9f918781 /utils/TableGen/Record.h | |
parent | 5f7775c85e60aa659ac76c4b18f7a1f6494f23e2 (diff) | |
download | external_llvm-6786d5e18387465d6106eaef0b7923526ef0bc10.zip external_llvm-6786d5e18387465d6106eaef0b7923526ef0bc10.tar.gz external_llvm-6786d5e18387465d6106eaef0b7923526ef0bc10.tar.bz2 |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index 278c349..45f3072 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; |