mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-28 22:20:43 +00:00
Copy dll storage in copyAttributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201295 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
525637575c
commit
17c9169bbd
@ -53,6 +53,7 @@ void GlobalValue::copyAttributesFrom(const GlobalValue *Src) {
|
||||
setSection(Src->getSection());
|
||||
setVisibility(Src->getVisibility());
|
||||
setUnnamedAddr(Src->hasUnnamedAddr());
|
||||
setDLLStorageClass(Src->getDLLStorageClass());
|
||||
}
|
||||
|
||||
void GlobalValue::setAlignment(unsigned Align) {
|
||||
|
4
test/Linker/dllstorage-a.ll
Normal file
4
test/Linker/dllstorage-a.ll
Normal file
@ -0,0 +1,4 @@
|
||||
; RUN: llvm-link %s %p/dllstorage-b.ll -S -o - | FileCheck %s
|
||||
@foo = external global i32
|
||||
|
||||
; CHECK: @foo = dllexport global i32 42
|
3
test/Linker/dllstorage-b.ll
Normal file
3
test/Linker/dllstorage-b.ll
Normal file
@ -0,0 +1,3 @@
|
||||
; RUN: true
|
||||
|
||||
@foo = dllexport global i32 42
|
Loading…
Reference in New Issue
Block a user