diff options
author | Fangrui Song <i@maskray.me> | 2024-10-29 20:06:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-29 20:06:56 -0700 |
commit | 29bff4aad8eb7f54f99e0496b735aee193063b04 (patch) | |
tree | 36f10f0f899b7eb7e6b0f2e57bd4987c11358d6b /llvm/lib/CodeGen/MachineFunctionAnalysis.cpp | |
parent | 2c313259c65317f097d57ab4c6684b25db98f2e4 (diff) | |
download | llvm-29bff4aad8eb7f54f99e0496b735aee193063b04.zip llvm-29bff4aad8eb7f54f99e0496b735aee193063b04.tar.gz llvm-29bff4aad8eb7f54f99e0496b735aee193063b04.tar.bz2 |
[llvm-objdump] Fix coloring with nested WithMarkup
WithMarkup objects may nest, resulting in the `)` in `leaq
(%rdx,%rax), %rbx` to be green instead of the default color,
mismatching the color of `(`.
```
% llvm-mc -triple=x86_64 -mdis <<< '0x48 0x8d 0x1c 0x02'
.text
leaq <mem:(<reg:%rdx>,<reg:%rax>)>, <reg:%rbx>
```
To ensure that `(` and `)` get the same color, maintain a color stack
within MCInstPrinter.
Fix #99661
Pull Request: https://github.com/llvm/llvm-project/pull/113834
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions