From 5f7ddb1456d5b926e85710da690bf548ef0c9fc8 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 22 Aug 2021 21:00:43 +0200 Subject: Merge llvm-project main llvmorg-13-init-16847-g88e66fa60ae5 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-13-init-16847-g88e66fa60ae5, the last commit before the upstream release/13.x branch was created. PR: 258209 (cherry picked from commit fe6060f10f634930ff71b7c50291ddc610da2475) --- .../clang/lib/Frontend/TestModuleFileExtension.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'contrib/llvm-project/clang/lib/Frontend/TestModuleFileExtension.cpp') diff --git a/contrib/llvm-project/clang/lib/Frontend/TestModuleFileExtension.cpp b/contrib/llvm-project/clang/lib/Frontend/TestModuleFileExtension.cpp index 354aa7f5cd3f..7d4026a7efc6 100644 --- a/contrib/llvm-project/clang/lib/Frontend/TestModuleFileExtension.cpp +++ b/contrib/llvm-project/clang/lib/Frontend/TestModuleFileExtension.cpp @@ -15,6 +15,8 @@ using namespace clang; using namespace clang::serialization; +char TestModuleFileExtension::ID = 0; + TestModuleFileExtension::Writer::~Writer() { } void TestModuleFileExtension::Writer::writeExtensionContents( @@ -127,3 +129,11 @@ TestModuleFileExtension::createExtensionReader( return std::unique_ptr( new TestModuleFileExtension::Reader(this, Stream)); } + +std::string TestModuleFileExtension::str() const { + std::string Buffer; + llvm::raw_string_ostream OS(Buffer); + OS << BlockName << ":" << MajorVersion << ":" << MinorVersion << ":" << Hashed + << ":" << UserInfo; + return OS.str(); +} -- cgit v1.2.3