summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2017-02-02 05:09:51 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2017-02-02 05:09:51 +0000
commit1116d6915cefd57fb6f20540f10a7859a214cae8 (patch)
tree7108f1dc0a2cf5447ee6865a47f19caed8e1ff15 /clang/lib/Frontend/CompilerInstance.cpp
parentb81e6c48f825e5dce71e2d01bf62f3a64f24a029 (diff)
downloadbcm5719-llvm-1116d6915cefd57fb6f20540f10a7859a214cae8.tar.gz
bcm5719-llvm-1116d6915cefd57fb6f20540f10a7859a214cae8.zip
Modules: Simplify CompilerInstance constructor, NFC
Initialize fields directly in header. Note that the ModuleManager field is an IntrusiveRefCntPtr, so there's no need for explicit initialization. llvm-svn: 293863
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index afcaa6e8787..39fe7771a6f 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -57,10 +57,7 @@ CompilerInstance::CompilerInstance(
std::shared_ptr<PCHContainerOperations> PCHContainerOps,
bool BuildingModule)
: ModuleLoader(BuildingModule), Invocation(new CompilerInvocation()),
- ModuleManager(nullptr),
- ThePCHContainerOperations(std::move(PCHContainerOps)),
- BuildGlobalModuleIndex(false), HaveFullGlobalModuleIndex(false),
- ModuleBuildFailed(false) {}
+ ThePCHContainerOperations(std::move(PCHContainerOps)) {}
CompilerInstance::~CompilerInstance() {
assert(OutputFiles.empty() && "Still output files in flight?");
OpenPOWER on IntegriCloud