llvm-project/llvm/lib/BinaryFormat
David Blaikie ac69af7ad6 llvm-dwarfdump: Improve/fix pretty printing of array dimensions
This is to address post-commit feedback from Paul Robinson on r348954.

The original commit misinterprets count and upper bound as the same thing (I thought I saw GCC producing an upper bound the same as Clang's count, but GCC correctly produces an upper bound that's one less than the count (in C, that is, where arrays are zero indexed)).

I want to preserve the C-like output for the common case, so in the absence of a lower bound the count (or one greater than the upper bound) is rendered between []. In the trickier cases, where a lower bound is specified, a half-open range is used (eg: lower bound 1, count 2 would be "[1, 3)" and an unknown parts use a '?' (eg: "[1, ?)" or "[?, 7)" or "[?, ? + 3)").

Reviewers: aprantl, probinson, JDevlieghere

Differential Revision: https://reviews.llvm.org/D55721

llvm-svn: 349670
2018-12-19 19:34:24 +00:00
..
AMDGPUMetadataVerifier.cpp [AMDGPU] Emit MessagePack HSA Metadata for v3 code object 2018-12-12 19:39:27 +00:00
CMakeLists.txt [AMDGPU] Emit MessagePack HSA Metadata for v3 code object 2018-12-12 19:39:27 +00:00
Dwarf.cpp llvm-dwarfdump: Improve/fix pretty printing of array dimensions 2018-12-19 19:34:24 +00:00
LLVMBuild.txt
Magic.cpp Use RequireNullTerminator=false in identify_magic. 2018-12-01 00:22:39 +00:00
MsgPackReader.cpp [BinaryFormat] Add MessagePack reader/writer 2018-08-22 21:42:50 +00:00
MsgPackTypes.cpp [BinaryFormat] Add MsgPackTypes 2018-11-15 18:50:01 +00:00
MsgPackWriter.cpp Fix undefined behavior in r340457 2018-08-23 02:51:09 +00:00
Wasm.cpp [WebAssembly] Add support for the event section 2018-11-14 02:46:21 +00:00