aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2016-06-14 15:09:30 +0000
committerNirav Dave <niravd@google.com>2016-06-14 15:09:30 +0000
commitf8d00d5cac27171abd644c227fc4302a2bdc11c6 (patch)
tree54626cfe42083f8d7b38512149c8159bac1cafbe /clang/lib/CodeGen/CodeGenModule.cpp
parent17091364d13f2436eb63ec4df484d28fcb55d976 (diff)
downloadllvm-f8d00d5cac27171abd644c227fc4302a2bdc11c6.zip
llvm-f8d00d5cac27171abd644c227fc4302a2bdc11c6.tar.gz
llvm-f8d00d5cac27171abd644c227fc4302a2bdc11c6.tar.bz2
Fix BSS global handling in AsmPrinter
Change EmitGlobalVariable to check final assembler section is in BSS before using .lcomm/.comm directive. This prevents globals from being put into .bss erroneously when -data-sections is used. This fixes PR26570. Reviewers: echristo, rafael Subscribers: llvm-commits, mehdi_amini Differential Revision: http://reviews.llvm.org/D21146 llvm-svn: 272674
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions