[all-commits] [llvm/llvm-project] 495bd4: [llvm-mc] Don't print initial .text for disassembler

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Dec 16 23:39:09 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 495bd4c255a0eb0e5b4fef5240eddc5fded1911b
      https://github.com/llvm/llvm-project/commit/495bd4c255a0eb0e5b4fef5240eddc5fded1911b
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-12-16 (Mon, 16 Dec 2024)

  Changed paths:
    M llvm/lib/MC/MCAsmStreamer.cpp
    M llvm/test/MC/Disassembler/AArch64/colored.txt
    M llvm/test/MC/Disassembler/ARM/arm-trustzone.txt
    M llvm/test/tools/llvm-mc/line_end_with_space.test
    M llvm/tools/llvm-mc/Disassembler.cpp

  Log Message:
  -----------
  [llvm-mc] Don't print initial .text for disassembler

```
% echo 90 | llvm-mc -triple=x86_64 --disassemble --hex
	.text
        nop
```

The initial `.text` kludge is due `initSection`, which is actually only
needed by AIX XCOFF for its `getCurrentSectionOnly()` use in
MCAsmStreamer::emitInstruction (https://reviews.llvm.org/D95518). Adjust
MCAsmStreamer::emitInstruction to not trigger failures on

```
echo 7c4303a6 | llvm-mc --cdis --hex --triple=powerpc-aix-ibm-xcoff
```

Pull Request: https://github.com/llvm/llvm-project/pull/120185



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list