llvm-project
04a67528 - [MC] Simplify MCBinaryExpr/MCUnaryExpr printing by reducing parentheses (#133674)

Commit
266 days ago
[MC] Simplify MCBinaryExpr/MCUnaryExpr printing by reducing parentheses (#133674) The existing pretty printer generates excessive parentheses for MCBinaryExpr expressions. This update removes unnecessary parentheses of MCBinaryExpr with +/- operators and MCUnaryExpr. Since relocatable expressions only use + and -, this change improves readability in most cases. Examples: - (SymA - SymB) + C now prints as SymA - SymB + C. This updates the output of -fexperimental-relative-c++-abi-vtables for AArch64 and x86 to `.long _ZN1B3fooEv@PLT-_ZTV1B-8` - expr + (MCTargetExpr) now prints as expr + MCTargetExpr, with this change primarily affecting AMDGPUMCExpr.
Author
Parents
Loading