mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
all predicates on an MnemonicAlias must be AssemblerPredicates.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117890 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1de8823578
commit
4a74ee7203
@ -1466,13 +1466,17 @@ static std::string GetAliasRequiredFeatures(Record *R,
|
||||
std::string Result;
|
||||
unsigned NumFeatures = 0;
|
||||
for (unsigned i = 0, e = ReqFeatures.size(); i != e; ++i) {
|
||||
if (SubtargetFeatureInfo *F = Info.getSubtargetFeature(ReqFeatures[i])) {
|
||||
if (NumFeatures)
|
||||
Result += '|';
|
||||
SubtargetFeatureInfo *F = Info.getSubtargetFeature(ReqFeatures[i]);
|
||||
|
||||
Result += F->getEnumName();
|
||||
++NumFeatures;
|
||||
}
|
||||
if (F == 0)
|
||||
throw TGError(R->getLoc(), "Predicate '" + ReqFeatures[i]->getName() +
|
||||
"' is not marked as an AssemblerPredicate!");
|
||||
|
||||
if (NumFeatures)
|
||||
Result += '|';
|
||||
|
||||
Result += F->getEnumName();
|
||||
++NumFeatures;
|
||||
}
|
||||
|
||||
if (NumFeatures > 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user