[PATCH] D19376: [MC] Create unique .pdata sections for every .text section

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 21 11:00:24 PDT 2016


rnk created this revision.
rnk added reviewers: majnemer, rafael.
rnk added a subscriber: llvm-commits.

This adds a unique ID to the COFF section uniquing map, similar to the
one we have for ELF.  The unique id is not currently exposed via the
assembler because we don't have a use case for it yet. Users generally
create .pdata with the .seh_* family of directives, and the assembler
internally needs to produce .pdata and .xdata sections corresponding to
the code section.

The map to remember which .pdata section to use for a given .text
section is maintained in the MCContext, since this is something the
assembler needs to maintain to implement .seh_* directives. I'm open to
suggestisons for a better home.

http://reviews.llvm.org/D19376

Files:
  include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
  include/llvm/MC/MCContext.h
  include/llvm/MC/MCWinEH.h
  lib/CodeGen/AsmPrinter/WinException.cpp
  lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  lib/MC/MCAsmStreamer.cpp
  lib/MC/MCContext.cpp
  lib/MC/MCParser/COFFAsmParser.cpp
  lib/MC/MCStreamer.cpp
  lib/MC/MCWin64EH.cpp
  lib/MC/MCWinEH.cpp
  lib/Target/X86/X86TargetObjectFile.cpp
  test/MC/COFF/seh-section-2.s
  test/MC/COFF/seh-section.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19376.54543.patch
Type: text/x-patch
Size: 27689 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160421/38dff87b/attachment.bin>


More information about the llvm-commits mailing list