Emit sections/directives in the proper order. This fixes PR1376. Also,

some small cleanup was made.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36780 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov
2007-05-05 09:04:50 +00:00
parent 440168b00e
commit 2a07e2f4df
6 changed files with 37 additions and 42 deletions

View File

@ -1955,7 +1955,7 @@ private:
didInitial = true;
// Dwarf sections base addresses.
if (TAI->getDwarfRequiresFrameSection()) {
if (TAI->doesDwarfRequireFrameSection()) {
Asm->SwitchToDataSection(TAI->getDwarfFrameSection());
EmitLabel("section_frame", 0);
}
@ -2324,7 +2324,7 @@ private:
/// EmitInitialDebugFrame - Emit common frame info into a debug frame section.
///
void EmitInitialDebugFrame() {
if (!TAI->getDwarfRequiresFrameSection())
if (!TAI->doesDwarfRequireFrameSection())
return;
int stackGrowth =
@ -2367,7 +2367,7 @@ private:
/// EmitFunctionDebugFrame - Emit per function frame info into a debug frame
/// section.
void EmitFunctionDebugFrame() {
if (!TAI->getDwarfRequiresFrameSection())
if (!TAI->doesDwarfRequireFrameSection())
return;
// Start the dwarf frame section.
@ -3124,7 +3124,7 @@ public:
if (MMI &&
ExceptionHandling &&
TAI->getSupportsExceptionHandling()) {
TAI->doesSupportExceptionHandling()) {
shouldEmit = true;
// Assumes in correct section after the entry point.
EmitLabel("eh_func_begin", ++SubprogramCount);