summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineModuleInfo.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
commit4a04c4b69c75775b5bfb04d3b3743dde171c4608 (patch)
tree6ba9b83ad8d2f5e05e5aedceaa4642c32b48e052 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parentd234b0f08cf66d67ea90a016e472d65e0057ef5d (diff)
downloadbcm5719-llvm-4a04c4b69c75775b5bfb04d3b3743dde171c4608.tar.gz
bcm5719-llvm-4a04c4b69c75775b5bfb04d3b3743dde171c4608.zip
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"} llvm-svn: 209600
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud