Revert "Round up zero-sized symbols to 1 byte in `.debug_aranges`."
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Tue, 31 May 2022 09:03:33 +0000 (11:03 +0200)
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Tue, 31 May 2022 09:03:44 +0000 (11:03 +0200)
commit86caa0371859d450ed60c4b186d8ccbcc72fef5e
tree99a223063b039e67bdb4b6acce50b5870537e9cd
parentf199b2b00fdbc7234cb6362fe487259eb339dff9
Revert "Round up zero-sized symbols to 1 byte in `.debug_aranges`."

This reverts commit 256a52d9aac8a9e98fbfd6a3d91090bf127cef7d (and
also the follow-up commit 38eb4fe74b3843ab0d7fc1e that moved a test
case to a different directory).

As discussed in https://reviews.llvm.org/D126257 there is a suspicion
that something was wrong with this commit as text section range was
shortened to 1 byte rather than rounded up as shown in the
llvm/test/DebugInfo/X86/dwarf-aranges.ll test case.
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/test/CodeGen/X86/dwarf-aranges-zero-size.ll [deleted file]
llvm/test/DebugInfo/MSP430/dwarf-basics-v5.ll
llvm/test/DebugInfo/X86/dwarf-aranges.ll