Skip to content

Commit

Permalink
[llvm-jitlink] Use -num-threads=0 for regression tests relying on deb…
Browse files Browse the repository at this point in the history
…ug output.

ORC and JITLink debugging output write the dbgs() raw_ostream, which isn't
thread-safe. Use -num-threads=0 to force single-threaded linking for tests that
produce debugging output.

The llvm-jitlink tool is updated to suggest -num-threads=0 when debugging
output is enabled.
  • Loading branch information
lhames committed Jan 8, 2025
1 parent dde5546 commit bfb0a51
Show file tree
Hide file tree
Showing 36 changed files with 143 additions and 116 deletions.
24 changes: 5 additions & 19 deletions llvm/lib/ExecutionEngine/Orc/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1821,17 +1821,10 @@ ExecutionSession::lookup(const JITDylibSearchOrder &SearchOrder,
RegisterDependenciesFunction RegisterDependencies) {
#if LLVM_ENABLE_THREADS
// In the threaded case we use promises to return the results.
std::promise<SymbolMap> PromisedResult;
Error ResolutionError = Error::success();
std::promise<MSVCPExpected<SymbolMap>> PromisedResult;

auto NotifyComplete = [&](Expected<SymbolMap> R) {
if (R)
PromisedResult.set_value(std::move(*R));
else {
ErrorAsOutParameter _(ResolutionError);
ResolutionError = R.takeError();
PromisedResult.set_value(SymbolMap());
}
PromisedResult.set_value(std::move(R));
};

#else
Expand All @@ -1848,18 +1841,11 @@ ExecutionSession::lookup(const JITDylibSearchOrder &SearchOrder,
#endif

// Perform the asynchronous lookup.
lookup(K, SearchOrder, std::move(Symbols), RequiredState, NotifyComplete,
RegisterDependencies);
lookup(K, SearchOrder, std::move(Symbols), RequiredState,
std::move(NotifyComplete), RegisterDependencies);

#if LLVM_ENABLE_THREADS
auto ResultFuture = PromisedResult.get_future();
auto Result = ResultFuture.get();

if (ResolutionError)
return std::move(ResolutionError);

return std::move(Result);

return PromisedResult.get_future().get();
#else
if (ResolutionError)
return std::move(ResolutionError);
Expand Down
10 changes: 6 additions & 4 deletions llvm/test/ExecutionEngine/JITLink/AArch32/ELF_data_alignment.s
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# REQUIRES: asserts
# RUN: llvm-mc -triple=armv7-linux-gnueabi -arm-add-build-attributes -filetype=obj -o %t_armv7.o %s
# RUN: llvm-objdump -s --section=.rodata %t_armv7.o | FileCheck --check-prefix=CHECK-OBJ %s
# RUN: llvm-jitlink -noexec -slab-address 0x76ff0000 -slab-allocate 10Kb \
# RUN: -slab-page-size 4096 %t_armv7.o -debug-only=jitlink 2>&1 \
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
# RUN: -slab-address 0x76ff0000 -slab-allocate 10Kb \
# RUN: -slab-page-size 4096 %t_armv7.o 2>&1 \
# RUN: | FileCheck --check-prefix=CHECK-LG %s
# RUN: llvm-jitlink -noexec -slab-address 0x76ff0000 -slab-allocate 10Kb \
# RUN: -slab-page-size 4096 %t_armv7.o -check %s

# RUN: llvm-mc -triple=thumbv7-linux-gnueabi -arm-add-build-attributes -filetype=obj -o %t_thumbv7.o %s
# RUN: llvm-objdump -s --section=.rodata %t_thumbv7.o | FileCheck --check-prefix=CHECK-OBJ %s
# RUN: llvm-jitlink -noexec -slab-address 0x76ff0000 -slab-allocate 10Kb \
# RUN: -slab-page-size 4096 %t_thumbv7.o -debug-only=jitlink 2>&1 \
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
# RUN: -slab-address 0x76ff0000 -slab-allocate 10Kb \
# RUN: -slab-page-size 4096 %t_thumbv7.o 2>&1 \
# RUN: | FileCheck --check-prefix=CHECK-LG %s
# RUN: llvm-jitlink -noexec -slab-address 0x76ff0000 -slab-allocate 10Kb \
# RUN: -slab-page-size 4096 %t_thumbv7.o -check %s
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/ExecutionEngine/JITLink/AArch64/ELF_ehframe.s
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# REQUIRES: asserts
# RUN: llvm-mc -triple=aarch64-linux-gnu -filetype=obj -o %t %s
# RUN: llvm-jitlink -noexec -phony-externals -debug-only=jitlink %t 2>&1 | \
# RUN: FileCheck %s
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
# RUN: -phony-externals %t 2>&1 | FileCheck %s
#
# Check that splitting of eh-frame sections works.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# REQUIRES: asserts
# RUN: llvm-mc -triple=arm64-apple-ios -filetype=obj -o %t %s
# RUN: llvm-jitlink -noexec -debug-only=jitlink %t 2>&1 | FileCheck %s
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec %t 2>&1 \
# RUN: | FileCheck %s
#
# Check that splitting of compact-unwind sections works.
#
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/ExecutionEngine/JITLink/AArch64/MachO_ehframe.s
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# REQUIRES: asserts
# RUN: llvm-mc -triple=arm64-apple-darwin11 -filetype=obj -o %t %s
# RUN: llvm-jitlink -noexec -phony-externals -debug-only=jitlink %t 2>&1 | \
# RUN: FileCheck %s
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
# RUN: -phony-externals %t 2>&1 | FileCheck %s
#
# Check that splitting of eh-frame sections works.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# REQUIRES: asserts
# RUN: llvm-mc --triple=loongarch64-linux-gnu --filetype=obj -o %t %s
# RUN: llvm-jitlink --noexec --phony-externals --debug-only=jitlink %t 2>&1 | \
# RUN: FileCheck %s
# RUN: llvm-mc -triple=loongarch64-linux-gnu -filetype=obj -o %t %s
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
# RUN: -phony-externals %t 2>&1 | FileCheck %s

## Check that splitting of eh-frame sections works.

Expand Down
12 changes: 6 additions & 6 deletions llvm/test/ExecutionEngine/JITLink/RISCV/ELF_relax_call.s
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# REQUIRES: asserts
# RUN: llvm-mc -triple=riscv32 -mattr=+relax -filetype=obj -o %t.rv32 %s
# RUN: llvm-jitlink -noexec \
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
# RUN: -slab-allocate 100Kb -slab-address 0x1000 -slab-page-size 4096 \
# RUN: -debug-only=jitlink -check %s %t.rv32 \
# RUN: 2>&1 | FileCheck %s
# RUN: -check %s %t.rv32 2>&1 \
# RUN: | FileCheck %s

# RUN: llvm-mc -triple=riscv64 -mattr=+relax -filetype=obj -o %t.rv64 %s
# RUN: llvm-jitlink -noexec \
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
# RUN: -slab-allocate 100Kb -slab-address 0x1000 -slab-page-size 4096 \
# RUN: -debug-only=jitlink -check %s %t.rv64 \
# RUN: 2>&1 | FileCheck %s
# RUN: -check %s %t.rv64 2>&1 \
# RUN: | FileCheck %s

.text

Expand Down
48 changes: 24 additions & 24 deletions llvm/test/ExecutionEngine/JITLink/RISCV/ELF_relax_call_rvc.s
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
# REQUIRES: asserts
# RUN: llvm-mc -triple=riscv32 -mattr=+relax,+c -filetype=obj -o %t.rv32 %s
# RUN: llvm-jitlink -noexec \
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
# RUN: -slab-allocate 100Kb -slab-address 0x1000 -slab-page-size 4096 \
# RUN: -debug-only=jitlink -check %s %t.rv32 \
# RUN: 2>&1 | FileCheck %s
# RUN: llvm-jitlink -noexec \
# RUN: -check %s %t.rv32 2>&1 \
# RUN: | FileCheck %s
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
# RUN: -slab-allocate 100Kb -slab-address 0x1000 -slab-page-size 4096 \
# RUN: -debug-only=jitlink -check %s -check-name=jitlink-check-rv32 %t.rv32 \
# RUN: 2>&1 | FileCheck -check-prefix=CHECK-RV32 %s
# RUN: -check %s -check-name=jitlink-check-rv32 %t.rv32 2>&1 \
# RUN: | FileCheck -check-prefix=CHECK-RV32 %s

# RUN: llvm-mc -triple=riscv64 -mattr=+relax,+c -filetype=obj -o %t.rv64 %s
# RUN: llvm-jitlink -noexec \
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
# RUN: -slab-allocate 100Kb -slab-address 0x1000 -slab-page-size 4096 \
# RUN: -debug-only=jitlink -check %s %t.rv64 \
# RUN: 2>&1 | FileCheck %s
# RUN: llvm-jitlink -noexec \
# RUN: -check %s %t.rv64 2>&1 \
# RUN: | FileCheck %s
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
# RUN: -slab-allocate 100Kb -slab-address 0x1000 -slab-page-size 4096 \
# RUN: -debug-only=jitlink -check %s -check-name=jitlink-check-rv64 %t.rv64 \
# RUN: 2>&1 | FileCheck -check-prefix=CHECK-RV64 %s
# RUN: -check %s -check-name=jitlink-check-rv64 %t.rv64 2>&1 \
# RUN: | FileCheck -check-prefix=CHECK-RV64 %s

# RUN: llvm-mc -triple=riscv32 -mattr=+relax,+zca -filetype=obj -o %t.rv32zca %s
# RUN: llvm-jitlink -noexec \
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
# RUN: -slab-allocate 100Kb -slab-address 0x1000 -slab-page-size 4096 \
# RUN: -debug-only=jitlink -check %s %t.rv32zca \
# RUN: 2>&1 | FileCheck %s
# RUN: llvm-jitlink -noexec \
# RUN: -check %s %t.rv32zca 2>&1 \
# RUN: | FileCheck %s
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
# RUN: -slab-allocate 100Kb -slab-address 0x1000 -slab-page-size 4096 \
# RUN: -debug-only=jitlink -check %s -check-name=jitlink-check-rv32 %t.rv32zca \
# RUN: 2>&1 | FileCheck -check-prefix=CHECK-RV32 %s
# RUN: -check %s -check-name=jitlink-check-rv32 %t.rv32zca 2>&1 \
# RUN: | FileCheck -check-prefix=CHECK-RV32 %s

# RUN: llvm-mc -triple=riscv64 -mattr=+relax,+c -filetype=obj -o %t.rv64 %s
# RUN: llvm-jitlink -noexec \
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
# RUN: -slab-allocate 100Kb -slab-address 0x1000 -slab-page-size 4096 \
# RUN: -debug-only=jitlink -check %s %t.rv64 \
# RUN: 2>&1 | FileCheck %s
# RUN: llvm-jitlink -noexec \
# RUN: -check %s %t.rv64 2>&1 \
# RUN: | FileCheck %s
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
# RUN: -slab-allocate 100Kb -slab-address 0x1000 -slab-page-size 4096 \
# RUN: -debug-only=jitlink -check %s -check-name=jitlink-check-rv64 %t.rv64 \
# RUN: 2>&1 | FileCheck -check-prefix=CHECK-RV64 %s
# RUN: -check %s -check-name=jitlink-check-rv64 %t.rv64 2>&1 \
# RUN: | FileCheck -check-prefix=CHECK-RV64 %s

.text

Expand Down
3 changes: 2 additions & 1 deletion llvm/test/ExecutionEngine/JITLink/RISCV/anonymous_symbol.s
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# REQUIRES: asserts
# RUN: llvm-mc -triple=riscv64 -filetype=obj -o %t %s
# RUN: llvm-jitlink -debug-only=jitlink -noexec %t 2>&1 | FileCheck %s
# RUN: llvm-jitlink -debug-only=jitlink -num-threads=0 -noexec %t 2>&1 \
# RUN: | FileCheck %s
#
# Because of the exist of cfi directive, sections like eh_frame section will be emitted
# in llvm's object code emission phase. Anonymous symbols will also be emitted to indicate
Expand Down
10 changes: 6 additions & 4 deletions llvm/test/ExecutionEngine/JITLink/ppc64/ELF_ppc64_ehframe.s
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# REQUIRES: asserts
# RUN: llvm-mc -triple=powerpc64le-unknown-linux-gnu -filetype=obj -o %t %s
# RUN: llvm-jitlink -noexec -phony-externals -debug-only=jitlink %t 2>&1 | \
# RUN: FileCheck %s
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec -phony-externals \
# RUN: %t 2>&1 \
# RUN: | FileCheck %s
# RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj -o %t %s
# RUN: llvm-jitlink -noexec -phony-externals -debug-only=jitlink %t 2>&1 | \
# RUN: FileCheck %s
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec -phony-externals \
# RUN: %t 2>&1 \
# RUN: | FileCheck %s
#
# Check that splitting of eh-frame sections works.
#
Expand Down
5 changes: 3 additions & 2 deletions llvm/test/ExecutionEngine/JITLink/ppc64/external_weak.s
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
# RUN: %t/external_weak.o %S/Inputs/external_weak.s
# RUN: llvm-mc -triple=powerpc64le-unknown-linux-gnu -filetype=obj -o \
# RUN: %t/external_weak_main.o %S/Inputs/external_weak_main.s
# RUN: llvm-jitlink -noexec -debug-only=jitlink %t/external_weak.o \
# RUN: %t/external_weak_main.o 2>&1 | FileCheck %s
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
# RUN: %t/external_weak.o %t/external_weak_main.o 2>&1 \
# RUN: | FileCheck %s
# CHECK: Created ELFLinkGraphBuilder for "{{.*}}external_weak_main.o"
# CHECK: Creating defined graph symbol for ELF symbol "foo"
# CHECK: External symbols:
Expand Down
3 changes: 2 additions & 1 deletion llvm/test/ExecutionEngine/JITLink/x86-64/COFF_abs.s
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# REQUIRES: asserts
# RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc %s -o %t
# RUN: llvm-jitlink --debug-only=jitlink -noexec %t 2>&1 | FileCheck %s
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec %t 2>&1 \
# RUN: | FileCheck %s
#
# Check absolute symbol is created with a correct value.
#
Expand Down
5 changes: 3 additions & 2 deletions llvm/test/ExecutionEngine/JITLink/x86-64/COFF_comdat_any.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# REQUIRES: asserts
# RUN: yaml2obj %s -o %t
# RUN: llvm-jitlink -noexec --debug-only=jitlink -noexec %t 2>&1 | FileCheck %s
#
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec %t 2>&1 \
# RUN: | FileCheck %s
#
# Check a weak symbol is created for a COMDAT symbol with IMAGE_COMDAT_SELECT_ANY selection type.
#
# CHECK: Creating graph symbols...
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
# REQUIRES: asserts
# RUN: yaml2obj %s -o %t
# RUN: llvm-jitlink -noexec --debug-only=jitlink -noexec %t 2>&1
#
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec %t 2>&1 \
# RUN: | FileCheck %s
#
# Check COMDAT associative symbol is emitted as local symbol.
#
# CHECK: Creating graph symbols...
# CHECK: 2: Creating defined graph symbol for COFF symbol ".text" in .text (index: 2)
# CHECK-NEXT: 0x0 (block + 0x00000000): size: 0x00000001, linkage: strong, scope: local, dead - <anonymous symbol>
# CHECK-NEXT: 4: Exporting COMDAT graph symbol for COFF symbol "func" in section 2
# CHECK-NEXT: 0x0 (block + 0x00000000): size: 0x00000001, linkage: weak, scope: default, dead - func
# CHECK-NEXT: 5: Creating defined graph symbol for COFF symbol ".xdata" in .xdata (index: 3)
# CHECK-NEXT: 0x0 (block + 0x00000000): size: 0x00000000, linkage: strong, scope: local, dead - .xdata
# CHECK: Creating graph symbols...
# CHECK: 0: Creating defined graph symbol for COFF symbol ".text" in .text (index: 1)
# CHECK-NEXT: 0x0 (block + 0x00000000): size: 0x00000000, linkage: strong, scope: local, dead - .text
# CHECK-NEXT: 4: Exporting COMDAT graph symbol for COFF symbol "func" in section 2
# CHECK-NEXT: 0x0 (block + 0x00000000): size: 0x00000000, linkage: weak, scope: default, dead - func
# CHECK-NEXT: 4: Creating defined graph symbol for COFF symbol "func" in .text (index: 2)
# CHECK-NEXT: 0x0 (block + 0x00000000): size: 0x00000000, linkage: weak, scope: default, dead - func
# CHECK-NEXT: 5: Creating defined graph symbol for COFF symbol ".xdata" in .xdata (index: 3)
# CHECK-NEXT: 0x0 (block + 0x00000000): size: 0x00000000, linkage: strong, scope: local, dead - .xdata

--- !COFF
header:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# REQUIRES: asserts
# RUN: yaml2obj %s -o %t
# RUN: llvm-jitlink -noexec --debug-only=jitlink -noexec %t 2>&1 | FileCheck %s
#
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec %t 2>&1 \
# RUN: | FileCheck %s
#
# Check a weak symbol is created for a COMDAT symbol with IMAGE_COMDAT_SELECT_EXACT_MATCH selection type.
# Doesn't check the content validation.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# REQUIRES: asserts
# RUN: yaml2obj %s -o %t
# RUN: llvm-jitlink -noexec --debug-only=jitlink -noexec %t 2>&1 | FileCheck %s
#
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec %t 2>&1 \
# RUN: | FileCheck %s
#
# Check a comdat export is done correctly even if second symbol of comdat sequences appear out of order
#
# CHECK: Creating graph symbols...
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# REQUIRES: asserts
# RUN: yaml2obj %s -o %t
# RUN: llvm-jitlink -noexec --debug-only=jitlink -noexec %t 2>&1
#
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec %t 2>&1 \
# RUN: | FileCheck %s
#
# Check jitlink handles largest selection type as plain weak symbol.
#
# CHECK: Creating graph symbols...
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# REQUIRES: asserts
# RUN: yaml2obj %s -o %t
# RUN: llvm-jitlink -noexec --debug-only=jitlink -noexec %t 2>&1 | FileCheck %s
#
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec -noexec %t 2>&1 \
# RUN: | FileCheck %s
#
# Check a strong symbol is created for a COMDAT symbol with IMAGE_COMDAT_SELECT_NODUPLICATES selection type.
#
# CHECK: Creating graph symbols...
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# REQUIRES: asserts
# RUN: yaml2obj %s -o %t
# RUN: llvm-jitlink -noexec --debug-only=jitlink -noexec %t 2>&1 | FileCheck %s
#
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec %t 2>&1 \
# RUN: | FileCheck %s
#
# Check a COMDAT symbol with an offset is handled correctly.
#
# CHECK: Creating graph symbols...
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# REQUIRES: asserts
# RUN: yaml2obj %s -o %t
# RUN: llvm-jitlink -noexec --debug-only=jitlink -noexec %t 2>&1 | FileCheck %s
#
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec %t 2>&1 \
# RUN: | FileCheck %s
#
# Check a weak symbol is created for a COMDAT symbol with IMAGE_COMDAT_SELECT_SAME_SIZE selection type.
# Doesn't check the size validation.
#
Expand Down
3 changes: 2 additions & 1 deletion llvm/test/ExecutionEngine/JITLink/x86-64/COFF_comdat_weak.s
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# REQUIRES: asserts
# RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc %s -o %t
# RUN: llvm-jitlink --debug-only=jitlink -noexec %t 2>&1 | FileCheck %s
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec %t 2>&1 \
# RUN: | FileCheck %s
#
# Check a COMDAT any symbol is exported as a weak symbol.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# REQUIRES: asserts
# RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc %s -o %t
# RUN: llvm-jitlink --debug-only=jitlink -noexec %t 2>&1 | FileCheck %s
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec %t 2>&1 \
# RUN: | FileCheck %s
#
# Check a common symbol is created.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# REQUIRES: asserts
# RUN: yaml2obj %s -o %t
# RUN: llvm-jitlink -noexec -abs __ImageBase=0xfff00000 \
# RUN: --debug-only=jitlink \
# RUN: -slab-allocate 100Kb -slab-address 0xfff00000 -slab-page-size 4096 \
# RUN: %t 2>&1 | FileCheck %s
#
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
# RUN: -abs __ImageBase=0xfff00000 -slab-allocate 100Kb \
# RUN: -slab-address 0xfff00000 -slab-page-size 4096 %t 2>&1 \
# RUN: | FileCheck %s
#
# Check duplicate undefined external symbols are handled correctly.
#
# CHECK: Creating graph symbols...
Expand Down
4 changes: 3 additions & 1 deletion llvm/test/ExecutionEngine/JITLink/x86-64/COFF_file_debug.s
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# REQUIRES: asserts
# RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc %s -o %t
# RUN: llvm-jitlink -abs func=0xcafef00d --debug-only=jitlink -noexec %t 2>&1 | FileCheck %s
# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
# RUN: -abs func=0xcafef00d %t 2>&1 \
# RUN: | FileCheck %s
#
# Check a file debug symbol is skipped.
#
Expand Down
Loading

0 comments on commit bfb0a51

Please sign in to comment.