mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
MC Win64: Put unwind info for COMDAT code into the same COMDAT group
Summary: This fixes a long standing issue where we would emit many little .text sections and only one .pdata and .xdata section. Now we generate one .pdata / .xdata pair per .text section and associate them correctly. Fixes PR19667. Reviewers: majnemer Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D5181 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217176 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -284,6 +284,13 @@ namespace llvm {
|
||||
|
||||
const MCSectionCOFF *getCOFFSection(StringRef Section);
|
||||
|
||||
/// Gets or creates a section equivalent to Sec that is associated with the
|
||||
/// section containing KeySym. For example, to create a debug info section
|
||||
/// associated with an inline function, pass the normal debug info section
|
||||
/// as Sec and the function symbol as KeySym.
|
||||
const MCSectionCOFF *getAssociativeCOFFSection(const MCSectionCOFF *Sec,
|
||||
const MCSymbol *KeySym);
|
||||
|
||||
/// @}
|
||||
|
||||
/// @name Dwarf Management
|
||||
|
@@ -65,9 +65,10 @@ struct FrameInfo {
|
||||
|
||||
class UnwindEmitter {
|
||||
public:
|
||||
static StringRef GetSectionSuffix(const MCSymbol *Function);
|
||||
static const MCSection *GetPDataSection(StringRef Suffix, MCContext &Context);
|
||||
static const MCSection *GetXDataSection(StringRef Suffix, MCContext &Context);
|
||||
static const MCSection *getPDataSection(const MCSymbol *Function,
|
||||
MCContext &Context);
|
||||
static const MCSection *getXDataSection(const MCSymbol *Function,
|
||||
MCContext &Context);
|
||||
|
||||
virtual ~UnwindEmitter() { }
|
||||
|
||||
|
Reference in New Issue
Block a user