diff options
author | Chris Lattner <sabre@nondot.org> | 2006-11-10 02:01:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-11-10 02:01:40 +0000 |
commit | f19683956275a85bc0cfa0ac08760fdcc790f510 (patch) | |
tree | 2a4503da968aae5663c8ba31193ffc2a74b998e9 /utils/TableGen/CodeGenTarget.cpp | |
parent | 26ddb506ec08789d33298efb3a5c142dea22e320 (diff) |
allow ptr_rc to explicitly appear in an instructions operand list, it doesn't
have to be a subpart of a complex operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31618 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenTarget.cpp')
-rw-r--r-- | utils/TableGen/CodeGenTarget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp index 440e7c6703..8aad3def21 100644 --- a/utils/TableGen/CodeGenTarget.cpp +++ b/utils/TableGen/CodeGenTarget.cpp @@ -386,7 +386,8 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr) } else if (Rec->getName() == "variable_ops") { hasVariableNumberOfOperands = true; continue; - } else if (!Rec->isSubClassOf("RegisterClass")) + } else if (!Rec->isSubClassOf("RegisterClass") && + Rec->getName() != "ptr_rc") throw "Unknown operand class '" + Rec->getName() + "' in instruction '" + R->getName() + "' instruction!"; |