mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
add a horrible hack to the dwarf printer. It looks like mingw is not specifying
an EHFrame section, so we just emit ehframe data into a random section. This is clearly bad. llvm-svn: 79323
This commit is contained in:
parent
6e6623b451
commit
7a382434b5
@ -56,7 +56,10 @@ void DwarfException::EmitCommonEHFrame(const Function *Personality,
|
||||
TD->getPointerSize() : -TD->getPointerSize();
|
||||
|
||||
// Begin eh frame section.
|
||||
Asm->SwitchToSection(Asm->getObjFileLowering().getEHFrameSection());
|
||||
// FIXME: THIS IS A HORRIBLE HACK. MingW isn't specifying an EHFrame section.
|
||||
if (const MCSection *EHFrameSec =
|
||||
Asm->getObjFileLowering().getEHFrameSection())
|
||||
Asm->SwitchToSection(EHFrameSec);
|
||||
|
||||
if (TAI->is_EHSymbolPrivate())
|
||||
O << TAI->getPrivateGlobalPrefix();
|
||||
@ -150,8 +153,11 @@ void DwarfException::EmitEHFrame(const FunctionEHFrameInfo &EHFrameInfo) {
|
||||
|
||||
const Function *TheFunc = EHFrameInfo.function;
|
||||
|
||||
Asm->SwitchToSection(Asm->getObjFileLowering().getEHFrameSection());
|
||||
|
||||
// FIXME: THIS IS A HORRIBLE HACK. MingW isn't specifying an EHFrame section.
|
||||
if (const MCSection *EHFrameSec =
|
||||
Asm->getObjFileLowering().getEHFrameSection())
|
||||
Asm->SwitchToSection(EHFrameSec);
|
||||
|
||||
// Externally visible entry into the functions eh frame info. If the
|
||||
// corresponding function is static, this should not be externally visible.
|
||||
if (!TheFunc->hasLocalLinkage())
|
||||
|
Loading…
Reference in New Issue
Block a user