aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic
diff options
context:
space:
mode:
authorMarcel Hlopko <hlopko@google.com>2020-10-29 13:01:28 -0700
committerFangrui Song <i@maskray.me>2020-10-29 13:09:05 -0700
commit9bb9b737c5573cf3850230bc4db8dac7be0e1e85 (patch)
tree401c608becc7ff1f88874f966588c8b4fff337d5 /clang/lib/Basic
parent91bf17208833ff10e4d3a7e785c9b54ed14b6df2 (diff)
downloadllvm-9bb9b737c5573cf3850230bc4db8dac7be0e1e85.zip
llvm-9bb9b737c5573cf3850230bc4db8dac7be0e1e85.tar.gz
llvm-9bb9b737c5573cf3850230bc4db8dac7be0e1e85.tar.bz2
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
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r--clang/lib/Basic/CMakeLists.txt3
-rw-r--r--clang/lib/Basic/Version.cpp2
2 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Basic/CMakeLists.txt b/clang/lib/Basic/CMakeLists.txt
index dfbe74a..d259b95 100644
--- a/clang/lib/Basic/CMakeLists.txt
+++ b/clang/lib/Basic/CMakeLists.txt
@@ -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
diff --git a/clang/lib/Basic/Version.cpp b/clang/lib/Basic/Version.cpp
index 286107c..af3118b 100644
--- a/clang/lib/Basic/Version.cpp
+++ b/clang/lib/Basic/Version.cpp
@@ -17,9 +17,7 @@
#include <cstdlib>
#include <cstring>
-#ifdef HAVE_VCS_VERSION_INC
#include "VCSVersion.inc"
-#endif
namespace clang {