Only get the .bss and .data sections when needed instead of unconditionally.
authorChris Lattner <sabre@nondot.org>
Sat, 16 Jul 2005 17:41:06 +0000 (17:41 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 16 Jul 2005 17:41:06 +0000 (17:41 +0000)
commit0589523525a156e096baf975c5e6e7e4112cb673
tree2734a5f6d17159e41bbf75120c1aefaca81277ca
parent56c3261e3415154969f8a2881e4097c40d92c60c
Only get the .bss and .data sections when needed instead of unconditionally.
This allows is to not emit empty sections when .data or .bss is not used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22457 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ELFWriter.cpp