[compiler-rt] 7939ce3 - [builtins] Move cfi start's after the symbol name [NFC]

Jon Roelofs via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 17 14:33:39 PST 2023


Author: Jon Roelofs
Date: 2023-11-17T14:33:20-08:00
New Revision: 7939ce39dac0078fef7183d6198598b99c652c88

URL: https://github.com/llvm/llvm-project/commit/7939ce39dac0078fef7183d6198598b99c652c88
DIFF: https://github.com/llvm/llvm-project/commit/7939ce39dac0078fef7183d6198598b99c652c88.diff

LOG: [builtins] Move cfi start's after the symbol name [NFC]

... in preparation for diagnosing improperly nested .cfi regions.

See https://reviews.llvm.org/D155245

Added: 
    

Modified: 
    compiler-rt/lib/builtins/assembly.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/builtins/assembly.h b/compiler-rt/lib/builtins/assembly.h
index 169d49683f503c6..8c42fc773483bc7 100644
--- a/compiler-rt/lib/builtins/assembly.h
+++ b/compiler-rt/lib/builtins/assembly.h
@@ -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                                           \


        


More information about the llvm-commits mailing list