forked from OSchip/llvm-project
tblgen/AsmMatcher: Downgrade instructions with tied operands to a debug-only warning, for now.
llvm-svn: 110779
This commit is contained in:
parent
0bd61240e9
commit
1326056108
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue