[llvm] [BOLT] Support computed goto and allow map addrs inside functions. (PR #120267)
Amir Ayupov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 29 11:08:22 PST 2025
================
@@ -0,0 +1,13 @@
+// This test checks that BOLT creates entry points for addresses
+// referenced by dynamic relocations.
+
+RUN: %clang %cflags %S/Inputs/indirect_goto.c -o %t.exe -Wl,-q
+RUN: llvm-bolt %t.exe -o %t.bolt --print-cfg | FileCheck %s
+
+// Check that bolt does not emit any error.
+CHECK-NOT: BOLT-ERROR
----------------
aaupov wrote:
I don't think it makes sense to add this check: if there are errors, llvm-bolt invocation would exit with non-zero code and cause test to fail.
https://github.com/llvm/llvm-project/pull/120267
More information about the llvm-commits
mailing list