diff options
author | Pavel Labath <pavel@labath.sk> | 2018-12-18 15:56:45 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2018-12-18 15:56:45 +0000 |
commit | 0d38e4fd2c0ed5d9a579cf40e2ab8634f9a779f6 (patch) | |
tree | efead9d3e1fffceb7e917e53f5b1ec1f8a3babe1 /clang/tools/c-index-test/c-index-test.c | |
parent | 94d2d09c7626dd6642d322da0bb2faf629447a62 (diff) | |
download | bcm5719-llvm-0d38e4fd2c0ed5d9a579cf40e2ab8634f9a779f6.tar.gz bcm5719-llvm-0d38e4fd2c0ed5d9a579cf40e2ab8634f9a779f6.zip |
ELF: Don't create sections for section header index 0
Summary:
The first section header does not define a real section. Instead it is
used for various elf extensions. This patch skips creation of a section
for index 0.
This has one furtunate side-effect, in that it allows us to use the section
header index as the Section ID (where 0 is also invalid). This way, we
can get rid of a lot of spurious +1s in the ObjectFileELF code.
Reviewers: clayborg, krytarowski, joerg, espindola
Subscribers: emaste, lldb-commits, arichardson
Differential Revision: https://reviews.llvm.org/D55757
llvm-svn: 349498
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
0 files changed, 0 insertions, 0 deletions