[AIX][XCOFF][BUG-Fixed] need to switch back to text section after emit a dumy eh structure

Summary:

in the patch https://reviews.llvm.org/D103651 [AIX][XCOFF] generate eh_info when vector registers are saved according to the traceback table.

when generate eh_info, it switch to other section, when it done, it need to switch back to text section again.

Reviewers: Jason Liu
Differential Revision: https://reviews.llvm.org/105195
This commit is contained in:
zhijian 2021-06-30 13:56:37 -04:00
parent 59fa435ea6
commit 9a9e6189d7
2 changed files with 3 additions and 0 deletions

View File

@ -1928,6 +1928,7 @@ void PPCAIXAsmPrinter::emitFunctionBodyEnd() {
OutStreamer->emitIntValue(0, PointerSize);
OutStreamer->emitIntValue(0, PointerSize);
OutStreamer->SwitchSection(MF->getSection());
}
}

View File

@ -90,6 +90,8 @@ entry:
; COMMON-NEXT: .align 2
; COMMON-NEXT: .vbyte 4, 0
; COMMON-NEXT: .vbyte 4, 0
; CHECK-ASM-NEXT: .csect .text[PR],2
; CHECK-FUNC-NEXT: .csect .foov[PR],2
; COMMON-NEXT: # -- End function
; COMMON: .toc
; COMMON: L..C2: