Skip to content

Commit

Permalink
[builtins] Move cfi start's after the symbol name [NFC]
Browse files Browse the repository at this point in the history
... in preparation for diagnosing improperly nested .cfi regions.

See https://reviews.llvm.org/D155245
  • Loading branch information
jroelofs committed Nov 17, 2023
1 parent a30e9a1 commit 7939ce3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions compiler-rt/lib/builtins/assembly.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,10 @@
.globl name SEPARATOR \
SYMBOL_IS_FUNC(name) SEPARATOR \
DECLARE_SYMBOL_VISIBILITY_UNMANGLED(name) SEPARATOR \
CFI_START SEPARATOR \
DECLARE_FUNC_ENCODING \
name: SEPARATOR BTI_C
name: \
SEPARATOR CFI_START \
SEPARATOR BTI_C

#define DEFINE_COMPILERRT_FUNCTION_ALIAS(name, target) \
.globl SYMBOL_NAME(name) SEPARATOR \
Expand Down

0 comments on commit 7939ce3

Please sign in to comment.