1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Copy dll storage in copyAttributes.

llvm-svn: 201295
This commit is contained in:
Rafael Espindola 2014-02-13 05:11:35 +00:00
parent 19fe55f203
commit 3b5b5b2a0f
3 changed files with 8 additions and 0 deletions

View File

@ -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) {

View 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

View File

@ -0,0 +1,3 @@
; RUN: true
@foo = dllexport global i32 42