Skip to content

Commit 2316d4c

Browse files
committed
remove hack that always emits .globl
1 parent bbce88c commit 2316d4c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

compiler/rustc_codegen_ssa/src/mir/naked_asm.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,6 @@ impl AsmBinaryFormat {
109109
}
110110

111111
fn linkage_directive(linkage: Linkage) -> Option<&'static str> {
112-
if true {
113-
// this is required. emitting nothing or .weak will emit
114-
//
115-
// > Global is external, but doesn't have external or weak linkage!
116-
//
117-
// and then aborts compilation
118-
return Some(".globl");
119-
}
120-
121112
match linkage {
122113
Linkage::External => Some(".globl"),
123114
Linkage::WeakAny | Linkage::WeakODR => Some(".weak"),

0 commit comments

Comments
 (0)