Fix: emit PC relative operand printers.

This commit is contained in:
Rot127 2023-07-20 08:32:57 -05:00
parent f70555391e
commit bb0a669893
No known key found for this signature in database
GPG Key ID: 3812B8258810AF67

View File

@ -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;