summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LexicalScopes.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-05-25 12:49:07 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-05-25 12:49:07 +0000
commitc385367909ab343dcc0a1a63267adb4786f9ebe5 (patch)
tree707c7b7bbae244a4508d8e417cf2f409cde61867 /lib/CodeGen/LexicalScopes.cpp
parentfba226fc522a618368c852e424c554fa8af9f0c2 (diff)
downloadllvm-c385367909ab343dcc0a1a63267adb4786f9ebe5.tar.gz
llvm-c385367909ab343dcc0a1a63267adb4786f9ebe5.tar.bz2
llvm-c385367909ab343dcc0a1a63267adb4786f9ebe5.tar.xz
Emit data or code export directives based on the type.
Currently we look at the Aliasee to decide what type of export directive to use. It seems better to use the type of the alias directly. This is similar to how we handle the alias having the same address but other attributes (linkage, visibility) from the aliasee. With this patch it is now possible to do things like target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-windows-msvc" @foo = global [6 x i8] c"\B8*\00\00\00\C3", section ".text", align 16 @f = dllexport alias i32 (), [6 x i8]* @foo !llvm.module.flags = !{!0} !0 = metadata !{i32 6, metadata !"Linker Options", metadata !1} !1 = metadata !{metadata !2, metadata !3} !2 = metadata !{metadata !"/DEFAULTLIB:libcmt.lib"} !3 = metadata !{metadata !"/DEFAULTLIB:oldnames.lib"} git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LexicalScopes.cpp')
0 files changed, 0 insertions, 0 deletions