summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2015-09-10 17:07:54 +0000
committerHans Wennborg <hans@hanshq.net>2015-09-10 17:07:54 +0000
commit7eb5464bc551dc7c3c1b3fe2ee618f6efd588b6f (patch)
tree531be698d6d9087bc68707750eda5115f1e5e7f1 /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
parentfba81bc0767b428696ccdaf0dd590d4ed5537a18 (diff)
downloadbcm5719-llvm-7eb5464bc551dc7c3c1b3fe2ee618f6efd588b6f.tar.gz
bcm5719-llvm-7eb5464bc551dc7c3c1b3fe2ee618f6efd588b6f.zip
Re-commit r247218: "Fix Clang-tidy misc-use-override warnings, other minor fixes"
This never broke the build; it was the LLVM side, r247216, that caused problems. llvm-svn: 247302
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
-rw-r--r--clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
index 54a38308694..a850c5ae39d 100644
--- a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
+++ b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
@@ -30,6 +30,7 @@
#include "llvm/Object/ObjectFile.h"
#include "llvm/Support/TargetRegistry.h"
#include <memory>
+
using namespace clang;
#define DEBUG_TYPE "pchcontainer"
@@ -139,7 +140,7 @@ public:
CodeGenOpts.SplitDwarfFile = OutputFileName;
}
- virtual ~PCHContainerGenerator() {}
+ ~PCHContainerGenerator() override = default;
void Initialize(ASTContext &Context) override {
assert(!Ctx && "initialized multiple times");
@@ -254,7 +255,7 @@ public:
}
};
-} // namespace
+} // anonymous namespace
std::unique_ptr<ASTConsumer>
ObjectFilePCHContainerWriter::CreatePCHContainerGenerator(
@@ -290,5 +291,4 @@ void ObjectFilePCHContainerReader::ExtractPCH(
// As a fallback, treat the buffer as a raw AST.
StreamFile.init((const unsigned char *)Buffer.getBufferStart(),
(const unsigned char *)Buffer.getBufferEnd());
- return;
}
OpenPOWER on IntegriCloud