diff options
author | Rui Ueyama <ruiu@google.com> | 2016-02-24 18:33:35 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-02-24 18:33:35 +0000 |
commit | 733153de3cea8a77991448c1a8c59fe3659ce355 (patch) | |
tree | 03b5a20a4add61f95a2efb81a2b7ffc924bdd7cc /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 795dc5a0fbb056f9756c4fee4f05fffffa22bf73 (diff) | |
download | llvm-733153de3cea8a77991448c1a8c59fe3659ce355.zip llvm-733153de3cea8a77991448c1a8c59fe3659ce355.tar.gz llvm-733153de3cea8a77991448c1a8c59fe3659ce355.tar.bz2 |
ELF: Do not instantiate InputSectionBase::Discarded.
"Discarded" section is a marker for discarded sections, and we do not
use the instance except for checking its identity. In that sense, it
is just another type of a "null" pointer for InputSectionBase. So,
it doesn't have to be a real instance of InputSectionBase class.
In this patch, we no longer instantiate Discarded section but instead
use -1 as a pointer value. This eliminates a global variable which
needed initialization at startup.
llvm-svn: 261761
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions