mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Fix PR1607
llvm-svn: 41048
This commit is contained in:
parent
a41b2e2d2f
commit
7dfec1ee54
@ -231,12 +231,12 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
|
|||||||
O << "\t.weak\t" << name << "\n";
|
O << "\t.weak\t" << name << "\n";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case GlobalValue::AppendingLinkage:
|
|
||||||
// FIXME: appending linkage variables should go into a section of
|
|
||||||
// their name or something. For now, just emit them as external.
|
|
||||||
case GlobalValue::DLLExportLinkage:
|
case GlobalValue::DLLExportLinkage:
|
||||||
DLLExportedGVs.insert(Mang->makeNameProper(I->getName(),""));
|
DLLExportedGVs.insert(Mang->makeNameProper(I->getName(),""));
|
||||||
// FALL THROUGH
|
// FALL THROUGH
|
||||||
|
case GlobalValue::AppendingLinkage:
|
||||||
|
// FIXME: appending linkage variables should go into a section of
|
||||||
|
// their name or something. For now, just emit them as external.
|
||||||
case GlobalValue::ExternalLinkage:
|
case GlobalValue::ExternalLinkage:
|
||||||
// If external or appending, declare as a global symbol
|
// If external or appending, declare as a global symbol
|
||||||
O << "\t.globl " << name << "\n";
|
O << "\t.globl " << name << "\n";
|
||||||
|
12
test/CodeGen/X86/2007-08-13-AppendingLinkage.ll
Normal file
12
test/CodeGen/X86/2007-08-13-AppendingLinkage.ll
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=x86 | not grep drectve
|
||||||
|
; PR1607
|
||||||
|
|
||||||
|
%hlvm_programs_element = type { i8*, i32 (i32, i8**)* }
|
||||||
|
@hlvm_programs = appending constant [1 x %hlvm_programs_element]
|
||||||
|
zeroinitializer
|
||||||
|
|
||||||
|
define %hlvm_programs_element* @hlvm_get_programs() {
|
||||||
|
entry:
|
||||||
|
ret %hlvm_programs_element* getelementptr([1 x %hlvm_programs_element]*
|
||||||
|
@hlvm_programs, i32 0, i32 0)
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user