From 822446d74aba5bda31f728f26444d7c03478157d Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Thu, 9 Oct 2025 14:14:06 +1100 Subject: [PATCH] [orc-rt] Remove (effectively) unused header orc-rt-c/orc-rt.h. NFCI. This header was a placeholder in the initial project check-in, but is not used. Time to remove it. --- orc-rt/include/orc-rt-c/orc-rt.h | 32 ---------------------- orc-rt/lib/executor/CMakeLists.txt | 1 - orc-rt/lib/executor/orc-rt-executor.cpp | 15 ---------- orc-rt/tools/orc-executor/orc-executor.cpp | 3 -- 4 files changed, 51 deletions(-) delete mode 100644 orc-rt/include/orc-rt-c/orc-rt.h delete mode 100644 orc-rt/lib/executor/orc-rt-executor.cpp diff --git a/orc-rt/include/orc-rt-c/orc-rt.h b/orc-rt/include/orc-rt-c/orc-rt.h deleted file mode 100644 index 31ef74f6c1e9..000000000000 --- a/orc-rt/include/orc-rt-c/orc-rt.h +++ /dev/null @@ -1,32 +0,0 @@ -//===- orc-rt-c/orc-rt.h - Placeholder header for orc-rt ----------*- C -*-===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// -// -// Placeholder header for initial orc-rt checkin. -// -//===----------------------------------------------------------------------===// - -#ifndef ORC_RT_C_ORC_RT_H -#define ORC_RT_C_ORC_RT_H - -#ifdef __cplusplus -extern "C" { -#endif - -/// \addtogroup orc_rt_c_api orc-rt C APIs -/// @{ - -void orc_rt(void); - -/// @} -/// - -#ifdef __cplusplus -} // extern "C" -#endif - -#endif // ORC_RT_C_ORC_RT_H diff --git a/orc-rt/lib/executor/CMakeLists.txt b/orc-rt/lib/executor/CMakeLists.txt index 5d83ac19cb71..9750d8e048f7 100644 --- a/orc-rt/lib/executor/CMakeLists.txt +++ b/orc-rt/lib/executor/CMakeLists.txt @@ -1,5 +1,4 @@ set(files - orc-rt-executor.cpp AllocAction.cpp ResourceManager.cpp RTTI.cpp diff --git a/orc-rt/lib/executor/orc-rt-executor.cpp b/orc-rt/lib/executor/orc-rt-executor.cpp deleted file mode 100644 index d70488d11d3f..000000000000 --- a/orc-rt/lib/executor/orc-rt-executor.cpp +++ /dev/null @@ -1,15 +0,0 @@ -//===- orc-rt-executor.cpp - Placeholder implementation for orc-rt --------===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// -// -// Placeholder implementation file for initial orc-rt checkin. -// -//===----------------------------------------------------------------------===// - -#include - -extern "C" void orc_rt(void) { printf("hello, world!\n"); } diff --git a/orc-rt/tools/orc-executor/orc-executor.cpp b/orc-rt/tools/orc-executor/orc-executor.cpp index 92bdd5bf5d53..e83d28fa03d5 100644 --- a/orc-rt/tools/orc-executor/orc-executor.cpp +++ b/orc-rt/tools/orc-executor/orc-executor.cpp @@ -10,9 +10,6 @@ // //===----------------------------------------------------------------------===// -#include "orc-rt-c/orc-rt.h" - int main(int argc, char *argv[]) { - orc_rt(); return 0; }