diff options
author | Fangrui Song <maskray@google.com> | 2019-05-23 16:01:59 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-05-23 16:01:59 +0000 |
commit | 6aebd8394a2bb9e514d0eaf8c8124b79974a2ba8 (patch) | |
tree | 6b12cede537fe3b7b366712e14d69de3e2ce5c21 /clang/test/CodeGenCXX/builtin-calling-conv.cpp | |
parent | 8cffa848509f3a16a863a31ce51e226fcf79875e (diff) | |
download | bcm5719-llvm-6aebd8394a2bb9e514d0eaf8c8124b79974a2ba8.tar.gz bcm5719-llvm-6aebd8394a2bb9e514d0eaf8c8124b79974a2ba8.zip |
[Object] object::ELFObjectFile::symbol_begin(): skip symbol index 0
For clients iterating the symbol table, none expects to handle index 0
(STN_UNDEF). Skip it to improve consistency with other binary formats.
Clients that need STN_UNDEF (e.g. lld) can use
getSectionContentsAsArray(). A test will be added in D62148.
Reviewed By: mtrent
Differential Revision: https://reviews.llvm.org/D62296
llvm-svn: 361506
Diffstat (limited to 'clang/test/CodeGenCXX/builtin-calling-conv.cpp')
0 files changed, 0 insertions, 0 deletions