aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorGeorgii Rymar <grimar@accesssoftek.com>2020-11-06 13:39:55 +0300
committerGeorgii Rymar <grimar@accesssoftek.com>2020-11-18 11:31:00 +0300
commit65fd17c241e22e1671e81efdb683687369c2feb3 (patch)
tree35b2b8a7ecd72cc4cb8d7254410a5a3f1ca313c8 /clang/lib/Frontend/CompilerInvocation.cpp
parent955341a722a0a204c79f6b948e4fe0f23bb56e30 (diff)
downloadllvm-65fd17c241e22e1671e81efdb683687369c2feb3.zip
llvm-65fd17c241e22e1671e81efdb683687369c2feb3.tar.gz
llvm-65fd17c241e22e1671e81efdb683687369c2feb3.tar.bz2
[lib/Support/YAMLTraits] - Don't print leading zeroes when dumping Hex8/Hex16/Hex32 types.
When we produce an YAML output, we also print leading zeroes currently. An output might look like this: ``` - Name: .dynsym Type: SHT_DYNSYM Address: 0x0000000000001000 EntSize: 0x0000000000000018 ``` There are probably no reason to print leading zeroes. It just makes harder to read values. This patch stops printing them. The output becomes like: ``` - Name: .dynsym Type: SHT_DYNSYM Address: 0x1000 EntSize: 0x18 ``` This affects obj2yaml mostly, but also dsymutil and llvm-xray tools output. Differential revision: https://reviews.llvm.org/D90930
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions