mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-01 06:46:34 +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) {
|
else if (Str.find("printAdrLabelOperand") == 0) {
|
||||||
unsigned TemplArgsIdx = Str.find("<");
|
unsigned TemplArgsIdx = Str.find("<");
|
||||||
Result = Str.substr(0, TemplArgsIdx) + "Addr" + Str.substr(TemplArgsIdx);
|
Result = Str.substr(0, TemplArgsIdx) + "Addr" + Str.substr(TemplArgsIdx);
|
||||||
|
} else {
|
||||||
|
Result = Str;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
Result = Str;
|
Result = Str;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user