mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-17 00:10:28 +00:00
fix printInsnAliasEnum
This commit is contained in:
parent
48774db25f
commit
8bdb4963c2
@ -3438,6 +3438,10 @@ void printInsnAliasEnum(CodeGenTarget const &Target,
|
||||
SmallVector<StringRef, 1> Matches;
|
||||
// Some Alias only differ by operands. Get only the mnemonic part.
|
||||
Regex("^[a-zA-Z0-9+-.]+").match(AliasAsm, &Matches);
|
||||
if (Matches.empty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
StringRef &AliasMnemonic = Matches[0];
|
||||
std::string NormAliasMnem = Target.getName().upper() + "_INS_ALIAS_" +
|
||||
normalizedMnemonic(AliasMnemonic);
|
||||
|
Loading…
x
Reference in New Issue
Block a user