From a683f9ba1356e92a5e7243d9f80fe8a8b6f737c8 Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Fri, 26 Jan 2007 17:29:20 +0000 Subject: Files missing from LABEL check in. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33539 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/InstrInfoEmitter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'utils/TableGen/InstrInfoEmitter.cpp') diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp index 3d4da0ee28..7ea85980da 100644 --- a/utils/TableGen/InstrInfoEmitter.cpp +++ b/utils/TableGen/InstrInfoEmitter.cpp @@ -315,7 +315,9 @@ void InstrInfoEmitter::emitShiftedValue(Record *R, StringInit *Val, if (RV == 0 || RV->getValue() == 0) { // This isn't an error if this is a builtin instruction. - if (R->getName() != "PHI" && R->getName() != "INLINEASM") + if (R->getName() != "PHI" && + R->getName() != "INLINEASM" && + R->getName() != "LABEL") throw R->getName() + " doesn't have a field named '" + Val->getValue() + "'!"; return; -- cgit v1.2.3