llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.97k stars 11.54k forks source link

[BUG] Weird coloring in x86 assembly in llvm-objdump #99661

Open Cr0a3 opened 1 month ago

Cr0a3 commented 1 month ago

Hi, I am experimenting a little with writing my own backend (for another project). To test the correctness of code generatation and object file emiting i use llvm-mc and llvm-objdump. I dissasembled an file and i noticed a bracket is green and the closing one is gray. I think it would be prettier to use gray for both ones: image

(You maybe need to zoom in a little to view the difference)

llvmbot commented 1 month ago

@llvm/issue-subscribers-tools-llvm-objdump

Author: Cr0a3 (Toni-Graphics)

Hi, I am experimenting a little with writing my own backend (for another project). To test the correctness of code generatation and object file emiting i use `llvm-mc` and `llvm-objdump`. I dissasembled an file and i noticed a bracket is green and the closing one is gray. I think it would be prettier to use gray for both ones: ![image](https://github.com/user-attachments/assets/536b3b4c-4efa-4a63-9d6d-d0f4bfcd315c) (You maybe need to zoom in a little to view the difference)
Cr0a3 commented 1 month ago

I fixed the bug myself. Just need to test it and then create a pull request

llvmbot commented 1 month ago

@llvm/issue-subscribers-backend-x86

Author: Cr0a3 (Toni-Graphics)

Hi, I am experimenting a little with writing my own backend (for another project). To test the correctness of code generatation and object file emiting i use `llvm-mc` and `llvm-objdump`. I dissasembled an file and i noticed a bracket is green and the closing one is gray. I think it would be prettier to use gray for both ones: ![image](https://github.com/user-attachments/assets/536b3b4c-4efa-4a63-9d6d-d0f4bfcd315c) (You maybe need to zoom in a little to view the difference)