[llvm] [SystemZ] Introduce GNU and HLASM differences to asmwriter and update tests (PR #113369)
Ulrich Weigand via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 23 02:18:36 PDT 2024
================
@@ -30,6 +30,12 @@ void SystemZHLASMInstPrinter::printInst(const MCInst *MI, uint64_t Address,
StringRef Annot,
const MCSubtargetInfo &STI,
raw_ostream &O) {
- printInstruction(MI, Address, O);
+ std::string Str;
+ raw_string_ostream RSO(Str);
+ printInstruction(MI, Address, RSO);
+ // Eat the first tab character and replace it with a space since it is
+ // hardcoded in AsmWriterEmitter::EmitPrintInstruction
+ // TODO: introduce a line prefix member to AsmWriter to avoid this problem
----------------
uweigand wrote:
Can we at least verify here that the skipped character is indeed a tab?
https://github.com/llvm/llvm-project/pull/113369
More information about the llvm-commits
mailing list