[llvm] [CFI][annotation] Leave alone function pointers in function annotations (PR #80173)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 8 00:41:16 PST 2024


================
@@ -0,0 +1,46 @@
+; RUN: opt -passes=lowertypetests %s -o %t.o
+; RUN: llvm-dis %t.o -o - | FileCheck %s --check-prefix=CHECK-foobar
+; CHECK-foobar: {{llvm.global.annotations = .*[foo|bar], .*[foo|bar],}}
+; RUN: llvm-dis %t.o -o - | FileCheck %s --check-prefix=CHECK-cfi
+; CHECK-cfi-NOT: {{llvm.global.annotations = .*cfi.*}}
+
+target triple = "aarch64-none-linux-gnu"
----------------
nikic wrote:

If the triple is required, you should add `; REQUIRES: aarch64-registered-target` to the test, otherwise it will probably fail on buildbots without aarch64.

https://github.com/llvm/llvm-project/pull/80173


More information about the llvm-commits mailing list