Skip to content

Commit 626d0fa

Browse files
[llvm-jitlink-executor] Fix unused function warning with LLVM_ENABLE_THREADS=0 (NFC)
1 parent 3bc86bf commit 626d0fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/tools/llvm-jitlink/llvm-jitlink-executor/llvm-jitlink-executor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ int openListener(std::string Host, std::string PortStr) {
112112
#endif // LLVM_ON_UNIX
113113
}
114114

115+
#if LLVM_ENABLE_THREADS
116+
115117
// JITLink debug support plugins put information about JITed code in this GDB
116118
// JIT Interface global from OrcTargetProcess.
117119
extern "C" struct jit_descriptor __jit_debug_descriptor;
@@ -123,6 +125,8 @@ static void *findLastDebugDescriptorEntryPtr() {
123125
return Last;
124126
}
125127

128+
#endif
129+
126130
int main(int argc, char *argv[]) {
127131
#if LLVM_ENABLE_THREADS
128132

0 commit comments

Comments
 (0)