summaryrefslogtreecommitdiffstats
path: root/lld/ELF/OutputSections.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-10-23 17:39:43 +0000
committerRui Ueyama <ruiu@google.com>2018-10-23 17:39:43 +0000
commit42ab6c53f85da6c50bf13dbf3e75cea09a51a715 (patch)
tree2f6d3ec39e3e25642ca05dd45afc0534beededc4 /lld/ELF/OutputSections.cpp
parent531e3d0cd90db990b56482666f07b6a4ead9b82d (diff)
downloadbcm5719-llvm-42ab6c53f85da6c50bf13dbf3e75cea09a51a715.tar.gz
bcm5719-llvm-42ab6c53f85da6c50bf13dbf3e75cea09a51a715.zip
Remove a global variable that we can live without.
Out::DebugInfo was used only by GdbIndex class to determine if we need to create a .gdb_index section, but we can do the same check without it. Added a test that this patch doesn't change the existing behavior. llvm-svn: 345058
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
-rw-r--r--lld/ELF/OutputSections.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index 0e8e406b91d..c2c7f2c0320 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -32,7 +32,6 @@ using namespace lld::elf;
uint8_t Out::First;
PhdrEntry *Out::TlsPhdr;
-OutputSection *Out::DebugInfo;
OutputSection *Out::ElfHeader;
OutputSection *Out::ProgramHeaders;
OutputSection *Out::PreinitArray;
OpenPOWER on IntegriCloud