From: Lang Hames Date: Mon, 12 Sep 2022 16:51:04 +0000 (-0700) Subject: [ORC-RT] Drop the 'clang_rt.' prefix from the ORC runtime. X-Git-Tag: upstream/17.0.6~33730 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a85e4aa37deca75b52aee27981b08c5d59c39236;p=platform%2Fupstream%2Fllvm.git [ORC-RT] Drop the 'clang_rt.' prefix from the ORC runtime. 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. --- diff --git a/compiler-rt/include/CMakeLists.txt b/compiler-rt/include/CMakeLists.txt index 3151b47..5968cfd 100644 --- a/compiler-rt/include/CMakeLists.txt +++ b/compiler-rt/include/CMakeLists.txt @@ -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) diff --git a/compiler-rt/include/orc/c_api.h b/compiler-rt/include/orc_rt/c_api.h similarity index 100% rename from compiler-rt/include/orc/c_api.h rename to compiler-rt/include/orc_rt/c_api.h diff --git a/compiler-rt/lib/orc/CMakeLists.txt b/compiler-rt/lib/orc/CMakeLists.txt index 406830a..4bb9178 100644 --- a/compiler-rt/lib/orc/CMakeLists.txt +++ b/compiler-rt/lib/orc/CMakeLists.txt @@ -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} diff --git a/compiler-rt/test/orc/lit.cfg.py b/compiler-rt/test/orc/lit.cfg.py index de0d899..9b409c4 100644 --- a/compiler-rt/test/orc/lit.cfg.py +++ b/compiler-rt/test/orc/lit.cfg.py @@ -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')