mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-30 09:01:19 +00:00
Fix: emit PC relative operand printers.
This commit is contained in:
parent
f70555391e
commit
bb0a669893
@ -51,6 +51,8 @@ std::string AsmWriterOperand::getCode(bool PassSubtarget) const {
|
||||
else if (Str.find("printAdrLabelOperand") == 0) {
|
||||
unsigned TemplArgsIdx = Str.find("<");
|
||||
Result = Str.substr(0, TemplArgsIdx) + "Addr" + Str.substr(TemplArgsIdx);
|
||||
} else {
|
||||
Result = Str;
|
||||
}
|
||||
} else
|
||||
Result = Str;
|
||||
|
Loading…
Reference in New Issue
Block a user