From f19683956275a85bc0cfa0ac08760fdcc790f510 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 10 Nov 2006 02:01:40 +0000 Subject: 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 --- utils/TableGen/CodeGenTarget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'utils/TableGen/CodeGenTarget.cpp') 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!"; -- cgit v1.2.3