aboutsummaryrefslogtreecommitdiff
path: root/lld
diff options
context:
space:
mode:
authorJon Roelofs <jonathan_roelofs@apple.com>2023-11-21 09:24:37 -0800
committerJon Roelofs <jonathan_roelofs@apple.com>2023-11-21 10:33:11 -0800
commitd506aa4edfa66074db3dc1fa84da9d9c80d71500 (patch)
treef63f5b63a5390315e9349b92189598ec9883d3a5 /lld
parent1552b91162bbb410971e2d4e5ec7afd1c7cc932f (diff)
downloadllvm-d506aa4edfa66074db3dc1fa84da9d9c80d71500.zip
llvm-d506aa4edfa66074db3dc1fa84da9d9c80d71500.tar.gz
llvm-d506aa4edfa66074db3dc1fa84da9d9c80d71500.tar.bz2
Reland "[MC][AsmParser] Diagnose improperly nested .cfi frames"
This showed up when simplifying some large testcase, where the cfi directives became out of sync with the proc's they enclose. Now restricted to platforms that support .subsections_via_symbols. This reverts commit 797b68c0ba699994e1038ac33d3083541482bf19. Fixes: #72802 Differential revision: https://reviews.llvm.org/D153167 rdar://111459507
Diffstat (limited to 'lld')
-rw-r--r--lld/test/COFF/gc-dwarf-eh.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/test/COFF/gc-dwarf-eh.s b/lld/test/COFF/gc-dwarf-eh.s
index 757aa67..efe92d7 100644
--- a/lld/test/COFF/gc-dwarf-eh.s
+++ b/lld/test/COFF/gc-dwarf-eh.s
@@ -13,9 +13,9 @@
.def _main; .scl 2; .type 32; .endef
.section .text,"xr",one_only,_main
.globl _main
+_main:
.cfi_startproc
.cfi_personality 0, ___gxx_personality_v0
-_main:
xorl %eax, %eax
ret
.cfi_endproc
@@ -29,8 +29,8 @@ ___gxx_personality_v0:
.def _unused; .scl 2; .type 32; .endef
.section .text,"xr",one_only,_unused
.globl _unused
+_unused:
.cfi_startproc
.cfi_personality 0, ___gxx_personality_v0
-_unused:
ret
.cfi_endproc