[COFF] Move per-global .drective emission from AsmPrinter to TLOFCOFF
authorReid Kleckner <rnk@google.com>
Fri, 18 Sep 2020 20:43:13 +0000 (13:43 -0700)
committerReid Kleckner <rnk@google.com>
Fri, 18 Sep 2020 21:31:01 +0000 (14:31 -0700)
commit9932561b4892b6e9bbb0c2369272dfff2305fdb9
treef7dc6a6c92310b40e00c8a2406ea79b7f1d41c9f
parent3c731ba5f1b604c873e96ac137bfea723690ba95
[COFF] Move per-global .drective emission from AsmPrinter to TLOFCOFF

This changes the order of output sections and the output assembly, but
is otherwise NFC.

It simplifies the TLOF interface by removing two COFF-only methods.
llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
llvm/include/llvm/Target/TargetLoweringObjectFile.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/test/CodeGen/ARM/global-merge-dllexport.ll
llvm/test/CodeGen/X86/dllexport-x86_64.ll
llvm/test/CodeGen/X86/dllexport.ll