mirror of
https://github.com/intel/llvm.git
synced 2026-01-23 07:58:23 +08:00
[BOLT] Make ifunc test not statically-resolvable. NFC
This fixes a breakage caused by e976385415
This commit is contained in:
@@ -51,8 +51,11 @@
|
||||
// REL_CHECK: [[#REL_SYMB_ADDR]] {{.*}} FUNC {{.*}} resolver_foo
|
||||
|
||||
static void foo() {}
|
||||
static void bar() {}
|
||||
|
||||
static void *resolver_foo(void) { return foo; }
|
||||
extern int use_foo;
|
||||
|
||||
static void *resolver_foo(void) { return use_foo ? foo : bar; }
|
||||
|
||||
__attribute__((ifunc("resolver_foo"))) void ifoo();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user