mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
Drop the "eh_" from eh_func_begin and eh_func_end.
They will be used for more than eh tables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231185 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ed7eabb8b1
commit
c82398a2ac
@ -557,7 +557,7 @@ void AsmPrinter::EmitFunctionHeader() {
|
||||
}
|
||||
|
||||
if (!MMI->getLandingPads().empty()) {
|
||||
CurrentFnBegin = createTempSymbol("eh_func_begin", getFunctionNumber());
|
||||
CurrentFnBegin = createTempSymbol("func_begin", getFunctionNumber());
|
||||
|
||||
if (MAI->useAssignmentForEHBegin()) {
|
||||
MCSymbol *CurPos = OutContext.CreateTempSymbol();
|
||||
@ -884,7 +884,7 @@ void AsmPrinter::EmitFunctionBody() {
|
||||
|
||||
if (!MMI->getLandingPads().empty()) {
|
||||
// Create a symbol for the end of function.
|
||||
CurrentFnEnd = createTempSymbol("eh_func_end", getFunctionNumber());
|
||||
CurrentFnEnd = createTempSymbol("func_end", getFunctionNumber());
|
||||
OutStreamer.EmitLabel(CurrentFnEnd);
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
;16: main:
|
||||
;16-NEXT: [[TMP:.*]]:
|
||||
;16-NEXT: $eh_func_begin0 = ([[TMP]])
|
||||
;16-NEXT: $func_begin0 = ([[TMP]])
|
||||
;16-NEXT: .cfi_startproc
|
||||
;16-NEXT: .cfi_personality
|
||||
@.str = private unnamed_addr constant [7 x i8] c"hello\0A\00", align 1
|
||||
|
@ -1,13 +1,13 @@
|
||||
; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck %s
|
||||
; Test that we don't crashe if the .Leh_func_end0 name is taken.
|
||||
; Test that we don't crashe if the .Lfunc_end0 name is taken.
|
||||
|
||||
declare void @g()
|
||||
|
||||
define void @f() {
|
||||
bb0:
|
||||
call void asm ".Leh_func_end0:", ""()
|
||||
call void asm ".Lfunc_end0:", ""()
|
||||
; CHECK: #APP
|
||||
; CHECK-NEXT: .Leh_func_end0:
|
||||
; CHECK-NEXT: .Lfunc_end0:
|
||||
; CHECK-NEXT: #NO_APP
|
||||
|
||||
invoke void @g() to label %bb2 unwind label %bb1
|
||||
@ -19,6 +19,6 @@ bb1:
|
||||
bb2:
|
||||
ret void
|
||||
|
||||
; CHECK: [[END:.Leh_func_end.*]]:
|
||||
; CHECK: [[END:.Lfunc_end.*]]:
|
||||
; CHECK: .long [[END]]-
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ bb7:
|
||||
}
|
||||
|
||||
; DARWIN64: _F3:
|
||||
; DARWIN64: Leh_func_end
|
||||
; DARWIN64: Lfunc_end
|
||||
; DARWIN64-NEXT: .cfi_endproc
|
||||
; DARWIN64-NEXT: .section __TEXT,__gcc_except_tab
|
||||
; DARWIN64-NOT: .section
|
||||
|
Loading…
Reference in New Issue
Block a user