tblgen/AsmMatcher: Downgrade instructions with tied operands to a debug-only warning, for now.

llvm-svn: 110779
This commit is contained in:
Daniel Dunbar 2010-08-11 04:46:08 +00:00
parent 0bd61240e9
commit 1326056108
1 changed files with 6 additions and 3 deletions

View 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;
}
}