diff --git a/clang/include/clang/Config/config.h.cmake b/clang/include/clang/Config/config.h.cmake --- a/clang/include/clang/Config/config.h.cmake +++ b/clang/include/clang/Config/config.h.cmake @@ -60,9 +60,6 @@ /* Define if we have sys/resource.h (rlimits) */ #cmakedefine CLANG_HAVE_RLIMITS ${CLANG_HAVE_RLIMITS} -/* The LLVM product name and version */ -#define BACKEND_PACKAGE_STRING "${BACKEND_PACKAGE_STRING}" - /* Linker version detected at compile time. */ #cmakedefine HOST_LINK_VERSION "${HOST_LINK_VERSION}" diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -41,6 +41,7 @@ #include "clang/Serialization/InMemoryModuleCache.h" #include "llvm/ADT/ScopeExit.h" #include "llvm/ADT/Statistic.h" +#include "llvm/Config/llvm-config.h" #include "llvm/Support/BuryPointer.h" #include "llvm/Support/CrashRecoveryContext.h" #include "llvm/Support/Errc.h" @@ -1023,9 +1024,9 @@ // Validate/process some options. if (getHeaderSearchOpts().Verbose) - OS << "clang -cc1 version " CLANG_VERSION_STRING - << " based upon " << BACKEND_PACKAGE_STRING - << " default target " << llvm::sys::getDefaultTargetTriple() << "\n"; + OS << "clang -cc1 version " CLANG_VERSION_STRING << " based upon LLVM " + << LLVM_VERSION_STRING << " default target " + << llvm::sys::getDefaultTargetTriple() << "\n"; if (getCodeGenOpts().TimePasses) createFrontendTimer(); diff --git a/llvm/utils/gn/secondary/clang/include/clang/Config/BUILD.gn b/llvm/utils/gn/secondary/clang/include/clang/Config/BUILD.gn --- a/llvm/utils/gn/secondary/clang/include/clang/Config/BUILD.gn +++ b/llvm/utils/gn/secondary/clang/include/clang/Config/BUILD.gn @@ -25,7 +25,6 @@ "CLANG_SPAWN_CC1=", "DEFAULT_SYSROOT=", "GCC_INSTALL_PREFIX=", - "BACKEND_PACKAGE_STRING=LLVM ${llvm_version}git", "ENABLE_LINKER_BUILD_ID=", "ENABLE_X86_RELAX_RELOCATIONS=1", "CLANG_ENABLE_OBJC_REWRITER=1", # FIXME: flag? diff --git a/llvm/utils/release/bump-version.py b/llvm/utils/release/bump-version.py --- a/llvm/utils/release/bump-version.py +++ b/llvm/utils/release/bump-version.py @@ -121,13 +121,6 @@ ) if nline != line: break - # Match the BACKEND_PACKAGE_STRING in clang/config.h - elif "BACKEND_PACKAGE_STRING" in line: - nline = re.sub( - r'#define BACKEND_PACKAGE_STRING "LLVM ([0-9\.rcgit-]+)"', - f'#define BACKEND_PACKAGE_STRING "LLVM {self.version_str()}"', - line, - ) return nline diff --git a/utils/bazel/llvm-project-overlay/clang/include/clang/Config/config.h b/utils/bazel/llvm-project-overlay/clang/include/clang/Config/config.h --- a/utils/bazel/llvm-project-overlay/clang/include/clang/Config/config.h +++ b/utils/bazel/llvm-project-overlay/clang/include/clang/Config/config.h @@ -74,9 +74,6 @@ /* Define if we have sys/resource.h (rlimits) */ /* CLANG_HAVE_RLIMITS defined conditionally below */ -/* The LLVM product name and version */ -#define BACKEND_PACKAGE_STRING "LLVM 16.0.0git" - /* Linker version detected at compile time. */ /* #undef HOST_LINK_VERSION */