From 06164dd8540c5614b6294865e5e7259684d3fafa Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Sun, 6 Jul 2014 05:29:14 +0000 Subject: [PATCH] Track changes from clang r212387, r212388 llvm-svn: 212390 --- clang-tools-extra/module-map-checker/ModuleMapChecker.cpp | 2 +- clang-tools-extra/module-map-checker/ModuleMapChecker.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clang-tools-extra/module-map-checker/ModuleMapChecker.cpp b/clang-tools-extra/module-map-checker/ModuleMapChecker.cpp index 955432e9d610..d4c8b72cd841 100644 --- a/clang-tools-extra/module-map-checker/ModuleMapChecker.cpp +++ b/clang-tools-extra/module-map-checker/ModuleMapChecker.cpp @@ -215,7 +215,7 @@ ModuleMapChecker::ModuleMapChecker(StringRef ModuleMapPath, Diagnostics( new DiagnosticsEngine(DiagIDs, DiagnosticOpts.get(), &DC, false)), TargetOpts(new ModuleMapTargetOptions()), - Target(TargetInfo::CreateTargetInfo(*Diagnostics, TargetOpts.get())), + Target(TargetInfo::CreateTargetInfo(*Diagnostics, TargetOpts)), FileMgr(new FileManager(FileSystemOpts)), SourceMgr(new SourceManager(*Diagnostics, *FileMgr, false)), HeaderSearchOpts(new HeaderSearchOptions()), diff --git a/clang-tools-extra/module-map-checker/ModuleMapChecker.h b/clang-tools-extra/module-map-checker/ModuleMapChecker.h index 2159aa47f37c..8b555e2e2241 100644 --- a/clang-tools-extra/module-map-checker/ModuleMapChecker.h +++ b/clang-tools-extra/module-map-checker/ModuleMapChecker.h @@ -59,7 +59,7 @@ class ModuleMapChecker { // Supporting objects. /// Options controlling the language variant. - llvm::IntrusiveRefCntPtr LangOpts; + std::shared_ptr LangOpts; /// Diagnostic IDs. const llvm::IntrusiveRefCntPtr DiagIDs; /// Options controlling the diagnostic engine. @@ -69,7 +69,7 @@ class ModuleMapChecker { /// Diagnostic engine. llvm::IntrusiveRefCntPtr Diagnostics; /// Options controlling the target. - llvm::IntrusiveRefCntPtr TargetOpts; + std::shared_ptr TargetOpts; /// Target information. llvm::IntrusiveRefCntPtr Target; /// Options controlling the file system manager.