OSDN Git Service

[CodeGen] Hoist common AsmPrinter code out of X86, ARM, and AArch64
authorReid Kleckner <rnk@google.com>
Wed, 17 Jan 2018 23:55:23 +0000 (23:55 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 17 Jan 2018 23:55:23 +0000 (23:55 +0000)
commitdaef2dedfff4cc0af3a4c5bc7d9355f9a978407e
treea2b629f5e936fb1265e8d515612fd030c4f9e623
parentd3309408027216ced608ed884defd4542f4582ef
[CodeGen] Hoist common AsmPrinter code out of X86, ARM, and AArch64

Every known PE COFF target emits /EXPORT: linker flags into a .drective
section. The AsmPrinter should handle this.

While we're at it, use global_values() and emit each export flag with
its own .ascii directive. This should make the .s file output more
readable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@322788 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/Target/AArch64/AArch64AsmPrinter.cpp
lib/Target/ARM/ARMAsmPrinter.cpp
lib/Target/X86/X86AsmPrinter.cpp
test/CodeGen/AArch64/dllexport.ll
test/CodeGen/ARM/Windows/dllexport.ll
test/CodeGen/X86/dllexport-x86_64.ll
test/CodeGen/X86/dllexport.ll