tblgen/AsmMatcher: Downgrade instructions with tied operands to a debug-only warning...
authorDaniel Dunbar <daniel@zuster.org>
Wed, 11 Aug 2010 04:46:08 +0000 (04:46 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 11 Aug 2010 04:46:08 +0000 (04:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110779 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/AsmMatcherEmitter.cpp

index 08a430dc92d489e1b576b2ab496350c7e2600602..5464f8366e0674d0690d58eb0926b58cb789b5a6 100644 (file)
@@ -260,9 +260,12 @@ static bool IsAssemblerInstruction(StringRef Name,
     }
 
     if (Tokens[i][0] == '$' && !OperandNames.insert(Tokens[i]).second) {
-      std::string Err = "'" + Name.str() + "': " +
-        "invalid assembler instruction; tied operand '" + Tokens[i].str() + "'";
-      throw TGError(CGI.TheDef->getLoc(), Err);
+      DEBUG({
+          errs() << "warning: '" << Name << "': "
+                 << "ignoring instruction with tied operand '"
+                 << Tokens[i].str() << "'\n";
+        });
+      return false;
     }
   }