[llvm] [BOLT] Support computed goto and allow map addrs inside functions. (PR #120267)
Ash Dobrescu via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 31 06:40:04 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
----------------
Rin18 wrote:
Thank you for pointing this out, I've removed the check from the test.
https://github.com/llvm/llvm-project/pull/120267
More information about the llvm-commits
mailing list