mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
On ELF and COFF treat linker_private like private.
The linkers on these systems don't have anything special to do with these symbols. Since the intent is for them to be absent from the final object, just treat them as private. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197080 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
10
test/CodeGen/X86/linker-private.ll
Normal file
10
test/CodeGen/X86/linker-private.ll
Normal file
@@ -0,0 +1,10 @@
|
||||
; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck --check-prefix=ELF %s
|
||||
; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck --check-prefix=MACHO %s
|
||||
|
||||
@foo = linker_private global i32 42
|
||||
;ELF: {{^}}.Lfoo:
|
||||
;MACHO: {{^}}l_foo:
|
||||
|
||||
define i32* @f() {
|
||||
ret i32* @foo
|
||||
}
|
||||
Reference in New Issue
Block a user