mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
force all instruction operands to be named.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23358 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -285,8 +285,11 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr)
|
||||
throw "Unknown operand class '" + Rec->getName() +
|
||||
"' in instruction '" + R->getName() + "' instruction!";
|
||||
|
||||
if (!DI->getArgName(i).empty() &&
|
||||
!OperandNames.insert(DI->getArgName(i)).second)
|
||||
// Check that the operand has a name and that it's unique.
|
||||
if (DI->getArgName(i).empty())
|
||||
throw "In instruction '" + R->getName() + "', operand #" + utostr(i) +
|
||||
" has no name!";
|
||||
if (!OperandNames.insert(DI->getArgName(i)).second)
|
||||
throw "In instruction '" + R->getName() + "', operand #" + utostr(i) +
|
||||
" has the same name as a previous operand!";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user