mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
tblgen/AsmMatcher: Downgrade instructions with tied operands to a debug-only warning, for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110779 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2d0f2470ff
commit
a9ba5fe2bd
@ -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…
x
Reference in New Issue
Block a user