[ORC-RT] Drop the 'clang_rt.' prefix from the ORC runtime.
authorLang Hames <lhames@gmail.com>
Mon, 12 Sep 2022 16:51:04 +0000 (09:51 -0700)
committerLang Hames <lhames@gmail.com>
Mon, 12 Sep 2022 23:48:20 +0000 (16:48 -0700)
The ORC runtime isn't used by clang -- the prefix was just cargo-culted with
the rest of the XRay config when the ORC runtime was introduced. We now want to
make parts of it available for clients to link directly, so this seems like a
good time to fix the name.

compiler-rt/include/CMakeLists.txt
compiler-rt/include/orc_rt/c_api.h [moved from compiler-rt/include/orc/c_api.h with 100% similarity]
compiler-rt/lib/orc/CMakeLists.txt
compiler-rt/test/orc/lit.cfg.py

index 3151b47..5968cfd 100644 (file)
@@ -37,7 +37,7 @@ endif(COMPILER_RT_BUILD_XRAY)
 
 if (COMPILER_RT_BUILD_ORC)
   set(ORC_HEADERS
-    orc/c_api.h
+    orc_rt/c_api.h
     )
 endif(COMPILER_RT_BUILD_ORC)
 
index 406830a..4bb9178 100644 (file)
@@ -108,7 +108,7 @@ if (APPLE)
     CFLAGS ${ORC_CFLAGS}
     DEPS ${ORC_DEPS})
 
-  add_compiler_rt_runtime(clang_rt.orc
+  add_compiler_rt_runtime(orc_rt
     STATIC
     OS ${ORC_SUPPORTED_OS}
     ARCHS ${ORC_SUPPORTED_ARCH}
@@ -167,7 +167,7 @@ else() # not Apple
       DEPS ${ORC_DEPS})
 
     # Common ORC archive for instrumented binaries.
-    add_compiler_rt_runtime(clang_rt.orc
+    add_compiler_rt_runtime(orc_rt
       ${ORC_BUILD_TYPE}
       ARCHS ${arch}
       CFLAGS ${ORC_CFLAGS}
index de0d899..9b409c4 100644 (file)
@@ -20,9 +20,9 @@ llvm_jitlink = os.path.join(config.llvm_tools_dir, 'llvm-jitlink')
 orc_rt_executor_stem = os.path.join(config.compiler_rt_obj_root, 'lib/orc/tests/tools/orc-rt-executor')
 lli = os.path.join(config.llvm_tools_dir, 'lli')
 if config.host_os == 'Darwin':
-  orc_rt_path = '%s/libclang_rt.orc_osx.a' % config.compiler_rt_libdir
+  orc_rt_path = '%s/liborc_rt_osx.a' % config.compiler_rt_libdir
 else:
-  orc_rt_path = '%s/libclang_rt.orc%s.a' % (config.compiler_rt_libdir, config.target_suffix)
+  orc_rt_path = '%s/liborc_rt%s.a' % (config.compiler_rt_libdir, config.target_suffix)
 
 if config.libunwind_shared:
   config.available_features.add('libunwind-available')