mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
make sure that we don't use a common symbol if a section was specified
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32310 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e77242c3d5
commit
7367d05cb7
@ -296,6 +296,7 @@ bool ARMAsmPrinter::doFinalization(Module &M) {
|
||||
unsigned Align = TD->getTypeAlignment(C->getType());
|
||||
|
||||
if (C->isNullValue() &&
|
||||
!I->hasSection() &&
|
||||
(I->hasLinkOnceLinkage() || I->hasInternalLinkage() ||
|
||||
I->hasWeakLinkage())) {
|
||||
SwitchToDataSection(".data", I);
|
||||
|
4
test/CodeGen/ARM/section.ll
Normal file
4
test/CodeGen/ARM/section.ll
Normal file
@ -0,0 +1,4 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "__DTOR_END__:"
|
||||
|
||||
%__DTOR_END__ = internal global [1 x int] zeroinitializer, section ".dtors"
|
Loading…
Reference in New Issue
Block a user