mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
bad5f185df
Linker::LinkOnlyNeeded should always import globals with AppendingLinkage. This resolves PR33527. Differential Revision: https://reviews.llvm.org/D34448 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310522 91177308-0d34-0410-b5e6-96231b3b80d8
8 lines
175 B
LLVM
8 lines
175 B
LLVM
@used1 = global i8 4
|
|
@used2 = global i32 123
|
|
|
|
@llvm.compiler.used = appending global [2 x i8*] [
|
|
i8* @used1,
|
|
i8* bitcast (i32* @used2 to i8*)
|
|
], section "llvm.metadata"
|