Skip to content

Commit 76f3be5

Browse files
committed
Entering era zero
1 parent 8f031c1 commit 76f3be5

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

clang/tools/driver/cc1_main.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// demonstration and testing purposes.
1212
//
1313
//===----------------------------------------------------------------------===//
14-
#include "version.h"
1514
#include "clang/Basic/Stack.h"
1615
#include "clang/Basic/TargetOptions.h"
1716
#include "clang/CodeGen/ObjectFilePCHContainerOperations.h"
@@ -226,11 +225,14 @@ static int PrintSupportedExtensions(std::string TargetStr) {
226225

227226
int cc1_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) {
228227
clock_t StartTime = clock();
228+
std::string ClangVersion = "v" + std::to_string(LLVM_VERSION_MAJOR) + "." +
229+
std::to_string(LLVM_VERSION_MINOR) + "." +
230+
std::to_string(LLVM_VERSION_PATCH);
229231
StringRef FileName = StringRef(Argv[Argv.size() - 1]);
230232
auto ExitClock = llvm::make_scope_exit([&]() {
231233
clock_t EndTime = clock();
232234
auto Delta = (double)(EndTime - StartTime) / CLOCKS_PER_SEC;
233-
llvm::outs() << "llvm-msvc(" << CLANG_LLVM_MSVC_VERSION << ") spent "
235+
llvm::outs() << "llvm-msvc(" << ClangVersion << ") spent "
234236
<< llvm::format("%.3f", Delta) << "s in " << FileName << "\n";
235237
});
236238

clang/tools/driver/driver.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
// for functionality in the Driver clang library.
1111
//
1212
//===----------------------------------------------------------------------===//
13-
#include "version.h"
1413
#include "clang/Driver/Driver.h"
1514
#include "clang/Basic/DiagnosticOptions.h"
1615
#include "clang/Basic/HeaderInclude.h"

clang/tools/driver/version.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

llvm/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ if(NOT LLVM_NO_INSTALL_NAME_DIR_FOR_BUILD_TREE)
2222
endif()
2323

2424
if(NOT DEFINED LLVM_VERSION_MAJOR)
25-
set(LLVM_VERSION_MAJOR 18)
25+
set(LLVM_VERSION_MAJOR 0)
2626
endif()
2727
if(NOT DEFINED LLVM_VERSION_MINOR)
2828
set(LLVM_VERSION_MINOR 0)
2929
endif()
3030
if(NOT DEFINED LLVM_VERSION_PATCH)
31-
set(LLVM_VERSION_PATCH 0)
31+
set(LLVM_VERSION_PATCH 1)
3232
endif()
3333
if(NOT DEFINED LLVM_VERSION_SUFFIX)
34-
set(LLVM_VERSION_SUFFIX git)
34+
set(LLVM_VERSION_SUFFIX newworld)
3535
endif()
3636

3737
if (NOT PACKAGE_VERSION)

0 commit comments

Comments
 (0)