Remove HAVE_VCS_VERSION_INC, not needed

This preprocessor define was meant to be used to conditionally include VCSVersion.inc. However, the define was always set, and it was the content of the header that was conditionally generated. Therefore HAVE_VCS_VERSION_INC should be cleaned up.

Reviewed By: gribozavr2, MaskRay

Differential Revision: https://reviews.llvm.org/D84623
This commit is contained in:
Marcel Hlopko 2020-10-29 13:01:28 -07:00 committed by Fangrui Song
parent 91bf172088
commit 9bb9b737c5
8 changed files with 0 additions and 17 deletions

View File

@ -33,9 +33,6 @@ set_source_files_properties("${version_inc}"
PROPERTIES GENERATED TRUE
HEADER_FILE_ONLY TRUE)
set_property(SOURCE Version.cpp APPEND PROPERTY
COMPILE_DEFINITIONS "HAVE_VCS_VERSION_INC")
add_clang_library(clangBasic
Attributes.cpp
Builtins.cpp

View File

@ -17,9 +17,7 @@
#include <cstdlib>
#include <cstring>
#ifdef HAVE_VCS_VERSION_INC
#include "VCSVersion.inc"
#endif
namespace clang {

View File

@ -26,9 +26,6 @@ set_source_files_properties("${version_inc}"
PROPERTIES GENERATED TRUE
HEADER_FILE_ONLY TRUE)
set_property(SOURCE Version.cpp APPEND PROPERTY
COMPILE_DEFINITIONS "HAVE_VCS_VERSION_INC")
add_lld_library(lldCommon
Args.cpp
DWARF.cpp

View File

@ -12,9 +12,7 @@
#include "lld/Common/Version.h"
#ifdef HAVE_VCS_VERSION_INC
#include "VCSVersion.inc"
#endif
// Returns a version string, e.g.:
// lld 9.0.0 (https://github.com/llvm/llvm-project.git 9efdd7ac5e914d3c9fa1ef)

View File

@ -26,9 +26,6 @@ set_source_files_properties("${version_inc}"
PROPERTIES GENERATED TRUE
HEADER_FILE_ONLY TRUE)
set_property(SOURCE lldb.cpp APPEND PROPERTY
COMPILE_DEFINITIONS "HAVE_VCS_VERSION_INC")
list(APPEND lldbBase_SOURCES ${version_inc})
if(LLDB_VERSION_STRING)

View File

@ -13,9 +13,7 @@ using namespace lldb_private;
#include "clang/Basic/Version.h"
#ifdef HAVE_VCS_VERSION_INC
#include "VCSVersion.inc"
#endif
static const char *GetLLDBRevision() {
#ifdef LLDB_REVISION

View File

@ -103,5 +103,4 @@ static_library("Basic") {
"XRayInstr.cpp",
"XRayLists.cpp",
]
defines = [ "HAVE_VCS_VERSION_INC" ] # For Version.cpp
}

View File

@ -42,5 +42,4 @@ static_library("Common") {
"Timer.cpp",
"Version.cpp",
]
defines = [ "HAVE_VCS_VERSION_INC" ] # For Version.cpp
}