From c93dc7889644293e318e19d82830ea2acc45b678 Mon Sep 17 00:00:00 2001 From: Dylan Noblesmith Date: Mon, 20 Feb 2012 14:00:23 +0000 Subject: [PATCH] Basic: import IntrusiveRefCntPtr<> into clang namespace The class name is long enough without the llvm:: added. Also bring in RefCountedBase and RefCountedBaseVPTR. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150958 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/clang-interpreter/main.cpp | 2 +- examples/wpa/clang-wpa.cpp | 2 +- include/clang/AST/ASTContext.h | 2 +- include/clang/Basic/Diagnostic.h | 8 ++-- include/clang/Basic/DiagnosticIDs.h | 2 +- include/clang/Basic/FileManager.h | 2 +- include/clang/Basic/LLVM.h | 14 ++++++- include/clang/Basic/LangOptions.h | 3 +- include/clang/Basic/SourceManager.h | 2 +- include/clang/Basic/TargetInfo.h | 2 +- include/clang/Frontend/ASTUnit.h | 40 +++++++++---------- include/clang/Frontend/CompilerInstance.h | 16 ++++---- include/clang/Frontend/CompilerInvocation.h | 4 +- include/clang/Frontend/Utils.h | 4 +- include/clang/Lex/ModuleMap.h | 2 +- include/clang/Lex/Preprocessor.h | 2 +- .../Core/BugReporter/PathDiagnostic.h | 4 +- .../Core/PathSensitive/ProgramState_Fwd.h | 3 +- lib/ARCMigrate/ARCMT.cpp | 24 +++++------ lib/Basic/Diagnostic.cpp | 2 +- lib/Frontend/ASTMerge.cpp | 4 +- lib/Frontend/ASTUnit.cpp | 24 +++++------ lib/Frontend/ChainedIncludesSource.cpp | 4 +- lib/Frontend/CompilerInstance.cpp | 8 ++-- lib/Frontend/CompilerInvocation.cpp | 2 +- .../CreateInvocationFromCommandLine.cpp | 2 +- lib/Frontend/FrontendAction.cpp | 2 +- lib/Frontend/Warnings.cpp | 2 +- lib/Lex/ModuleMap.cpp | 4 +- lib/StaticAnalyzer/Core/BugReporter.cpp | 6 +-- tools/arcmt-test/arcmt-test.cpp | 8 ++-- tools/driver/cc1_main.cpp | 2 +- tools/driver/cc1as_main.cpp | 2 +- tools/driver/driver.cpp | 2 +- tools/libclang/CIndex.cpp | 4 +- tools/libclang/CIndexCodeCompletion.cpp | 10 ++--- tools/libclang/Indexing.cpp | 4 +- tools/libclang/IndexingContext.h | 2 +- unittests/Basic/SourceManagerTest.cpp | 4 +- unittests/Lex/LexerTest.cpp | 4 +- 40 files changed, 127 insertions(+), 113 deletions(-) diff --git a/examples/clang-interpreter/main.cpp b/examples/clang-interpreter/main.cpp index ce5c5f9d53..c39468a3fd 100644 --- a/examples/clang-interpreter/main.cpp +++ b/examples/clang-interpreter/main.cpp @@ -72,7 +72,7 @@ int main(int argc, const char **argv, char * const *envp) { TextDiagnosticPrinter *DiagClient = new TextDiagnosticPrinter(llvm::errs(), DiagnosticOptions()); - llvm::IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); + IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); DiagnosticsEngine Diags(DiagID, DiagClient); Driver TheDriver(Path.str(), llvm::sys::getDefaultTargetTriple(), "a.out", /*IsProduction=*/false, Diags); diff --git a/examples/wpa/clang-wpa.cpp b/examples/wpa/clang-wpa.cpp index 869c540dea..b1119e14b7 100644 --- a/examples/wpa/clang-wpa.cpp +++ b/examples/wpa/clang-wpa.cpp @@ -90,7 +90,7 @@ int main(int argc, char **argv) { return 0; DiagnosticOptions DiagOpts; - llvm::IntrusiveRefCntPtr Diags + IntrusiveRefCntPtr Diags = CompilerInstance::createDiagnostics(DiagOpts, argc, argv); for (unsigned i = 0, e = InputFilenames.size(); i != e; ++i) { const std::string &InFile = InputFilenames[i]; diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h index ca976f6048..9ed70dfb4b 100644 --- a/include/clang/AST/ASTContext.h +++ b/include/clang/AST/ASTContext.h @@ -81,7 +81,7 @@ namespace clang { /// ASTContext - This class holds long-lived AST nodes (such as types and /// decls) that can be referred to throughout the semantic analysis of a file. -class ASTContext : public llvm::RefCountedBase { +class ASTContext : public RefCountedBase { ASTContext &this_() { return *this; } mutable std::vector Types; diff --git a/include/clang/Basic/Diagnostic.h b/include/clang/Basic/Diagnostic.h index eb993a30e8..f9eaf99c95 100644 --- a/include/clang/Basic/Diagnostic.h +++ b/include/clang/Basic/Diagnostic.h @@ -105,7 +105,7 @@ public: /// "report warnings as errors" and passes them off to the DiagnosticConsumer /// for reporting to the user. DiagnosticsEngine is tied to one translation unit /// and one SourceManager. -class DiagnosticsEngine : public llvm::RefCountedBase { +class DiagnosticsEngine : public RefCountedBase { public: /// Level - The level of the diagnostic, after it has been through mapping. enum Level { @@ -161,7 +161,7 @@ private: unsigned ConstexprBacktraceLimit; // Cap on depth of constexpr evaluation // backtrace stack, 0 -> no limit. ExtensionHandling ExtBehavior; // Map extensions onto warnings or errors? - llvm::IntrusiveRefCntPtr Diags; + IntrusiveRefCntPtr Diags; DiagnosticConsumer *Client; bool OwnsDiagClient; SourceManager *SourceMgr; @@ -306,12 +306,12 @@ private: public: explicit DiagnosticsEngine( - const llvm::IntrusiveRefCntPtr &Diags, + const IntrusiveRefCntPtr &Diags, DiagnosticConsumer *client = 0, bool ShouldOwnClient = true); ~DiagnosticsEngine(); - const llvm::IntrusiveRefCntPtr &getDiagnosticIDs() const { + const IntrusiveRefCntPtr &getDiagnosticIDs() const { return Diags; } diff --git a/include/clang/Basic/DiagnosticIDs.h b/include/clang/Basic/DiagnosticIDs.h index 1939e580fc..a78c0a1e54 100644 --- a/include/clang/Basic/DiagnosticIDs.h +++ b/include/clang/Basic/DiagnosticIDs.h @@ -109,7 +109,7 @@ public: /// \brief Used for handling and querying diagnostic IDs. Can be used and shared /// by multiple Diagnostics for multiple translation units. -class DiagnosticIDs : public llvm::RefCountedBase { +class DiagnosticIDs : public RefCountedBase { public: /// Level - The level of the diagnostic, after it has been through mapping. enum Level { diff --git a/include/clang/Basic/FileManager.h b/include/clang/Basic/FileManager.h index 90f71f5203..5c7d9eba4a 100644 --- a/include/clang/Basic/FileManager.h +++ b/include/clang/Basic/FileManager.h @@ -110,7 +110,7 @@ public: /// properties, such as uniquing files based on "inode", so that a file with two /// names (e.g. symlinked) will be treated as a single file. /// -class FileManager : public llvm::RefCountedBase { +class FileManager : public RefCountedBase { FileSystemOptions FileSystemOpts; class UniqueDirContainer; diff --git a/include/clang/Basic/LLVM.h b/include/clang/Basic/LLVM.h index 49f18a815e..934a5a0159 100644 --- a/include/clang/Basic/LLVM.h +++ b/include/clang/Basic/LLVM.h @@ -29,6 +29,12 @@ namespace llvm { template class SmallVector; template class SmallVectorImpl; + // Reference counting. + template class IntrusiveRefCntPtr; + template struct IntrusiveRefCntPtrInfo; + template class RefCountedBase; + class RefCountedBaseVPTR; + class raw_ostream; // TODO: DenseMap, ... } @@ -50,7 +56,13 @@ namespace clang { using llvm::SmallString; using llvm::SmallVector; using llvm::SmallVectorImpl; - + + // Reference counting. + using llvm::IntrusiveRefCntPtr; + using llvm::IntrusiveRefCntPtrInfo; + using llvm::RefCountedBase; + using llvm::RefCountedBaseVPTR; + using llvm::raw_ostream; } // end namespace clang. diff --git a/include/clang/Basic/LangOptions.h b/include/clang/Basic/LangOptions.h index 7275f6655e..6a77ea6abc 100644 --- a/include/clang/Basic/LangOptions.h +++ b/include/clang/Basic/LangOptions.h @@ -15,6 +15,7 @@ #define LLVM_CLANG_LANGOPTIONS_H #include +#include "clang/Basic/LLVM.h" #include "clang/Basic/Visibility.h" #include "llvm/ADT/IntrusiveRefCntPtr.h" @@ -22,7 +23,7 @@ namespace clang { /// LangOptions - This class keeps track of the various options that can be /// enabled, which controls the dialect of C that is accepted. -class LangOptions : public llvm::RefCountedBase { +class LangOptions : public RefCountedBase { public: typedef clang::Visibility Visibility; diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index 848ae70308..685e318143 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -483,7 +483,7 @@ public: /// the case of a macro expansion, for example, the spelling location indicates /// where the expanded token came from and the expansion location specifies /// where it was expanded. -class SourceManager : public llvm::RefCountedBase { +class SourceManager : public RefCountedBase { /// \brief DiagnosticsEngine object. DiagnosticsEngine &Diag; diff --git a/include/clang/Basic/TargetInfo.h b/include/clang/Basic/TargetInfo.h index 0273f38372..ef73c82980 100644 --- a/include/clang/Basic/TargetInfo.h +++ b/include/clang/Basic/TargetInfo.h @@ -59,7 +59,7 @@ enum TargetCXXABI { /// TargetInfo - This class exposes information about the current target. /// -class TargetInfo : public llvm::RefCountedBase { +class TargetInfo : public RefCountedBase { llvm::Triple Triple; protected: // Target values set by the ctor of the actual target implementation. Default diff --git a/include/clang/Frontend/ASTUnit.h b/include/clang/Frontend/ASTUnit.h index fb368cfaa9..3cf14e5b99 100644 --- a/include/clang/Frontend/ASTUnit.h +++ b/include/clang/Frontend/ASTUnit.h @@ -61,7 +61,7 @@ using namespace idx; /// \brief Allocator for a cached set of global code completions. class GlobalCodeCompletionAllocator : public CodeCompletionAllocator, - public llvm::RefCountedBase + public RefCountedBase { }; @@ -70,14 +70,14 @@ class GlobalCodeCompletionAllocator /// class ASTUnit : public ModuleLoader { private: - llvm::IntrusiveRefCntPtr LangOpts; - llvm::IntrusiveRefCntPtr Diagnostics; - llvm::IntrusiveRefCntPtr FileMgr; - llvm::IntrusiveRefCntPtr SourceMgr; - OwningPtr HeaderInfo; - llvm::IntrusiveRefCntPtr Target; - llvm::IntrusiveRefCntPtr PP; - llvm::IntrusiveRefCntPtr Ctx; + IntrusiveRefCntPtr LangOpts; + IntrusiveRefCntPtr Diagnostics; + IntrusiveRefCntPtr FileMgr; + IntrusiveRefCntPtr SourceMgr; + OwningPtr HeaderInfo; + IntrusiveRefCntPtr Target; + IntrusiveRefCntPtr PP; + IntrusiveRefCntPtr Ctx; ASTReader *Reader; FileSystemOptions FileSystemOpts; @@ -92,7 +92,7 @@ private: /// Optional owned invocation, just used to make the invocation used in /// LoadFromCommandLine available. - llvm::IntrusiveRefCntPtr Invocation; + IntrusiveRefCntPtr Invocation; /// \brief The set of target features. /// @@ -266,7 +266,7 @@ private: /// \brief The language options used when we load an AST file. LangOptions ASTFileLangOpts; - static void ConfigureDiags(llvm::IntrusiveRefCntPtr &Diags, + static void ConfigureDiags(IntrusiveRefCntPtr &Diags, const char **ArgBegin, const char **ArgEnd, ASTUnit &AST, bool CaptureDiagnostics); @@ -324,14 +324,14 @@ public: } /// \brief Retrieve the allocator used to cache global code completions. - llvm::IntrusiveRefCntPtr + IntrusiveRefCntPtr getCachedCompletionAllocator() { return CachedCompletionAllocator; } /// \brief Retrieve the allocator used to cache global code completions. /// Creates the allocator if it doesn't already exist. - llvm::IntrusiveRefCntPtr + IntrusiveRefCntPtr getCursorCompletionAllocator() { if (!CursorCompletionAllocator.getPtr()) { CursorCompletionAllocator = new GlobalCodeCompletionAllocator; @@ -341,11 +341,11 @@ public: private: /// \brief Allocator used to store cached code completions. - llvm::IntrusiveRefCntPtr + IntrusiveRefCntPtr CachedCompletionAllocator; /// \brief Allocator used to store code completions for arbitrary cursors. - llvm::IntrusiveRefCntPtr + IntrusiveRefCntPtr CursorCompletionAllocator; /// \brief The set of cached code-completion results. @@ -629,7 +629,7 @@ public: /// \brief Create a ASTUnit. Gets ownership of the passed CompilerInvocation. static ASTUnit *create(CompilerInvocation *CI, - llvm::IntrusiveRefCntPtr Diags, + IntrusiveRefCntPtr Diags, bool CaptureDiagnostics = false); /// \brief Create a ASTUnit from an AST file. @@ -641,7 +641,7 @@ public: /// /// \returns - The initialized ASTUnit or null if the AST failed to load. static ASTUnit *LoadFromASTFile(const std::string &Filename, - llvm::IntrusiveRefCntPtr Diags, + IntrusiveRefCntPtr Diags, const FileSystemOptions &FileSystemOpts, bool OnlyLocalDecls = false, RemappedFile *RemappedFiles = 0, @@ -680,7 +680,7 @@ public: /// false means the caller is only interested in getting info through the /// provided \see Action. static ASTUnit *LoadFromCompilerInvocationAction(CompilerInvocation *CI, - llvm::IntrusiveRefCntPtr Diags, + IntrusiveRefCntPtr Diags, ASTFrontendAction *Action = 0, ASTUnit *Unit = 0, bool Persistent = true, @@ -702,7 +702,7 @@ public: // FIXME: Move OnlyLocalDecls, UseBumpAllocator to setters on the ASTUnit, we // shouldn't need to specify them at construction time. static ASTUnit *LoadFromCompilerInvocation(CompilerInvocation *CI, - llvm::IntrusiveRefCntPtr Diags, + IntrusiveRefCntPtr Diags, bool OnlyLocalDecls = false, bool CaptureDiagnostics = false, bool PrecompilePreamble = false, @@ -726,7 +726,7 @@ public: // shouldn't need to specify them at construction time. static ASTUnit *LoadFromCommandLine(const char **ArgBegin, const char **ArgEnd, - llvm::IntrusiveRefCntPtr Diags, + IntrusiveRefCntPtr Diags, StringRef ResourceFilesPath, bool OnlyLocalDecls = false, bool CaptureDiagnostics = false, diff --git a/include/clang/Frontend/CompilerInstance.h b/include/clang/Frontend/CompilerInstance.h index e1cfd73fb3..1c7b7d54fd 100644 --- a/include/clang/Frontend/CompilerInstance.h +++ b/include/clang/Frontend/CompilerInstance.h @@ -65,25 +65,25 @@ class TargetInfo; /// and a long form that takes explicit instances of any required objects. class CompilerInstance : public ModuleLoader { /// The options used in this compiler instance. - llvm::IntrusiveRefCntPtr Invocation; + IntrusiveRefCntPtr Invocation; /// The diagnostics engine instance. - llvm::IntrusiveRefCntPtr Diagnostics; + IntrusiveRefCntPtr Diagnostics; /// The target being compiled for. - llvm::IntrusiveRefCntPtr Target; + IntrusiveRefCntPtr Target; /// The file manager. - llvm::IntrusiveRefCntPtr FileMgr; + IntrusiveRefCntPtr FileMgr; /// The source manager. - llvm::IntrusiveRefCntPtr SourceMgr; + IntrusiveRefCntPtr SourceMgr; /// The preprocessor. - llvm::IntrusiveRefCntPtr PP; + IntrusiveRefCntPtr PP; /// The AST context. - llvm::IntrusiveRefCntPtr Context; + IntrusiveRefCntPtr Context; /// The AST consumer. OwningPtr Consumer; @@ -509,7 +509,7 @@ public: /// used by some diagnostics printers (for logging purposes only). /// /// \return The new object on success, or null on failure. - static llvm::IntrusiveRefCntPtr + static IntrusiveRefCntPtr createDiagnostics(const DiagnosticOptions &Opts, int Argc, const char* const *Argv, DiagnosticConsumer *Client = 0, diff --git a/include/clang/Frontend/CompilerInvocation.h b/include/clang/Frontend/CompilerInvocation.h index e1af7b0d8d..0099aae8dc 100644 --- a/include/clang/Frontend/CompilerInvocation.h +++ b/include/clang/Frontend/CompilerInvocation.h @@ -34,10 +34,10 @@ namespace clang { class CompilerInvocation; class DiagnosticsEngine; -class CompilerInvocationBase : public llvm::RefCountedBase { +class CompilerInvocationBase : public RefCountedBase { protected: /// Options controlling the language variant. - llvm::IntrusiveRefCntPtr LangOpts; + IntrusiveRefCntPtr LangOpts; public: CompilerInvocationBase(); diff --git a/include/clang/Frontend/Utils.h b/include/clang/Frontend/Utils.h index 7961be422a..6b1fc630e2 100644 --- a/include/clang/Frontend/Utils.h +++ b/include/clang/Frontend/Utils.h @@ -100,8 +100,8 @@ void CacheTokens(Preprocessor &PP, llvm::raw_fd_ostream* OS); /// argument vector. CompilerInvocation * createInvocationFromCommandLine(ArrayRef Args, - llvm::IntrusiveRefCntPtr Diags = - llvm::IntrusiveRefCntPtr()); + IntrusiveRefCntPtr Diags = + IntrusiveRefCntPtr()); } // end namespace clang diff --git a/include/clang/Lex/ModuleMap.h b/include/clang/Lex/ModuleMap.h index 85740816d1..4ebb1d42bf 100644 --- a/include/clang/Lex/ModuleMap.h +++ b/include/clang/Lex/ModuleMap.h @@ -37,7 +37,7 @@ class ModuleMapParser; class ModuleMap { SourceManager *SourceMgr; - llvm::IntrusiveRefCntPtr Diags; + IntrusiveRefCntPtr Diags; const LangOptions &LangOpts; const TargetInfo *Target; diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index 9c3b64abb0..960bf07ddd 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -60,7 +60,7 @@ class ModuleLoader; /// single source file, and don't know anything about preprocessor-level issues /// like the #include stack, token expansion, etc. /// -class Preprocessor : public llvm::RefCountedBase { +class Preprocessor : public RefCountedBase { DiagnosticsEngine *Diags; LangOptions &Features; const TargetInfo *Target; diff --git a/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h b/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h index c1b120b3a8..0df2ea1696 100644 --- a/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h +++ b/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h @@ -260,7 +260,7 @@ public: // Path "pieces" for path-sensitive diagnostics. //===----------------------------------------------------------------------===// -class PathDiagnosticPiece : public llvm::RefCountedBaseVPTR { +class PathDiagnosticPiece : public RefCountedBaseVPTR { public: enum Kind { ControlFlow, Event, Macro, CallEnter, CallExit }; enum DisplayHint { Above, Below }; @@ -326,7 +326,7 @@ public: class PathPieces : - public std::deque > { + public std::deque > { public: ~PathPieces(); }; diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState_Fwd.h b/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState_Fwd.h index 5839ad9382..371f3c582f 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState_Fwd.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState_Fwd.h @@ -10,6 +10,7 @@ #ifndef LLVM_CLANG_PROGRAMSTATE_FWD_H #define LLVM_CLANG_PROGRAMSTATE_FWD_H +#include "clang/Basic/LLVM.h" #include "llvm/ADT/IntrusiveRefCntPtr.h" namespace clang { @@ -34,7 +35,7 @@ namespace llvm { namespace clang { namespace ento { - typedef llvm::IntrusiveRefCntPtr ProgramStateRef; + typedef IntrusiveRefCntPtr ProgramStateRef; } } diff --git a/lib/ARCMigrate/ARCMT.cpp b/lib/ARCMigrate/ARCMT.cpp index 855f104566..61753074e8 100644 --- a/lib/ARCMigrate/ARCMT.cpp +++ b/lib/ARCMigrate/ARCMT.cpp @@ -206,8 +206,8 @@ static void emitPremigrationErrors(const CapturedDiagList &arcDiags, const DiagnosticOptions &diagOpts, Preprocessor &PP) { TextDiagnosticPrinter printer(llvm::errs(), diagOpts); - llvm::IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); - llvm::IntrusiveRefCntPtr Diags( + IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); + IntrusiveRefCntPtr Diags( new DiagnosticsEngine(DiagID, &printer, /*ShouldOwnClient=*/false)); Diags->setSourceManager(&PP.getSourceManager()); @@ -244,8 +244,8 @@ bool arcmt::checkForManualIssues(CompilerInvocation &origCI, CapturedDiagList capturedDiags; assert(DiagClient); - llvm::IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); - llvm::IntrusiveRefCntPtr Diags( + IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); + IntrusiveRefCntPtr Diags( new DiagnosticsEngine(DiagID, DiagClient, /*ShouldOwnClient=*/false)); // Filter of all diagnostics. @@ -349,8 +349,8 @@ static bool applyTransforms(CompilerInvocation &origCI, if (err) return true; } - llvm::IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); - llvm::IntrusiveRefCntPtr Diags( + IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); + IntrusiveRefCntPtr Diags( new DiagnosticsEngine(DiagID, DiagClient, /*ShouldOwnClient=*/false)); if (outputDir.empty()) { @@ -388,8 +388,8 @@ bool arcmt::getFileRemappings(std::vector > & DiagnosticConsumer *DiagClient) { assert(!outputDir.empty()); - llvm::IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); - llvm::IntrusiveRefCntPtr Diags( + IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); + IntrusiveRefCntPtr Diags( new DiagnosticsEngine(DiagID, DiagClient, /*ShouldOwnClient=*/false)); FileRemapper remapper; @@ -491,8 +491,8 @@ MigrationProcess::MigrationProcess(const CompilerInvocation &CI, StringRef outputDir) : OrigCI(CI), DiagClient(diagClient) { if (!outputDir.empty()) { - llvm::IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); - llvm::IntrusiveRefCntPtr Diags( + IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); + IntrusiveRefCntPtr Diags( new DiagnosticsEngine(DiagID, DiagClient, /*ShouldOwnClient=*/false)); Remapper.initFromDisk(outputDir, *Diags, /*ignoreIfFilesChanges=*/true); } @@ -510,8 +510,8 @@ bool MigrationProcess::applyTransform(TransformFn trans, std::vector ARCMTMacroLocs; assert(DiagClient); - llvm::IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); - llvm::IntrusiveRefCntPtr Diags( + IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); + IntrusiveRefCntPtr Diags( new DiagnosticsEngine(DiagID, DiagClient, /*ShouldOwnClient=*/false)); // Filter of all diagnostics. diff --git a/lib/Basic/Diagnostic.cpp b/lib/Basic/Diagnostic.cpp index a9f89faadb..c2631bba3f 100644 --- a/lib/Basic/Diagnostic.cpp +++ b/lib/Basic/Diagnostic.cpp @@ -34,7 +34,7 @@ static void DummyArgToStringFn(DiagnosticsEngine::ArgumentKind AK, intptr_t QT, DiagnosticsEngine::DiagnosticsEngine( - const llvm::IntrusiveRefCntPtr &diags, + const IntrusiveRefCntPtr &diags, DiagnosticConsumer *client, bool ShouldOwnClient) : Diags(diags), Client(client), OwnsDiagClient(ShouldOwnClient), SourceMgr(0) { diff --git a/lib/Frontend/ASTMerge.cpp b/lib/Frontend/ASTMerge.cpp index d33e0ea2cd..f3e6ea85be 100644 --- a/lib/Frontend/ASTMerge.cpp +++ b/lib/Frontend/ASTMerge.cpp @@ -37,10 +37,10 @@ void ASTMergeAction::ExecuteAction() { CI.getASTContext().getLangOptions()); CI.getDiagnostics().SetArgToStringFn(&FormatASTNodeDiagnosticArgument, &CI.getASTContext()); - llvm::IntrusiveRefCntPtr + IntrusiveRefCntPtr DiagIDs(CI.getDiagnostics().getDiagnosticIDs()); for (unsigned I = 0, N = ASTFiles.size(); I != N; ++I) { - llvm::IntrusiveRefCntPtr + IntrusiveRefCntPtr Diags(new DiagnosticsEngine(DiagIDs, CI.getDiagnostics().getClient(), /*ShouldOwnClient=*/false)); ASTUnit *Unit = ASTUnit::LoadFromASTFile(ASTFiles[I], Diags, diff --git a/lib/Frontend/ASTUnit.cpp b/lib/Frontend/ASTUnit.cpp index 1f2508730f..82255c722e 100644 --- a/lib/Frontend/ASTUnit.cpp +++ b/lib/Frontend/ASTUnit.cpp @@ -493,7 +493,7 @@ class ASTInfoCollector : public ASTReaderListener { ASTContext &Context; LangOptions &LangOpt; HeaderSearch &HSI; - llvm::IntrusiveRefCntPtr &Target; + IntrusiveRefCntPtr &Target; std::string &Predefines; unsigned &Counter; @@ -503,7 +503,7 @@ class ASTInfoCollector : public ASTReaderListener { public: ASTInfoCollector(Preprocessor &PP, ASTContext &Context, LangOptions &LangOpt, HeaderSearch &HSI, - llvm::IntrusiveRefCntPtr &Target, + IntrusiveRefCntPtr &Target, std::string &Predefines, unsigned &Counter) : PP(PP), Context(Context), LangOpt(LangOpt), HSI(HSI), Target(Target), @@ -630,7 +630,7 @@ llvm::MemoryBuffer *ASTUnit::getBufferForFile(StringRef Filename, } /// \brief Configure the diagnostics object for use with ASTUnit. -void ASTUnit::ConfigureDiags(llvm::IntrusiveRefCntPtr &Diags, +void ASTUnit::ConfigureDiags(IntrusiveRefCntPtr &Diags, const char **ArgBegin, const char **ArgEnd, ASTUnit &AST, bool CaptureDiagnostics) { if (!Diags.getPtr()) { @@ -648,7 +648,7 @@ void ASTUnit::ConfigureDiags(llvm::IntrusiveRefCntPtr &Diags, } ASTUnit *ASTUnit::LoadFromASTFile(const std::string &Filename, - llvm::IntrusiveRefCntPtr Diags, + IntrusiveRefCntPtr Diags, const FileSystemOptions &FileSystemOpts, bool OnlyLocalDecls, RemappedFile *RemappedFiles, @@ -1031,7 +1031,7 @@ bool ASTUnit::Parse(llvm::MemoryBuffer *OverrideMainBuffer) { llvm::CrashRecoveryContextCleanupRegistrar CICleanup(Clang.get()); - llvm::IntrusiveRefCntPtr + IntrusiveRefCntPtr CCInvocation(new CompilerInvocation(*Invocation)); Clang->setInvocation(CCInvocation.getPtr()); @@ -1308,7 +1308,7 @@ llvm::MemoryBuffer *ASTUnit::getMainBufferWithPrecompiledPreamble( bool AllowRebuild, unsigned MaxLines) { - llvm::IntrusiveRefCntPtr + IntrusiveRefCntPtr PreambleInvocation(new CompilerInvocation(PreambleInvocationIn)); FrontendOptions &FrontendOpts = PreambleInvocation->getFrontendOpts(); PreprocessorOptions &PreprocessorOpts @@ -1646,7 +1646,7 @@ StringRef ASTUnit::getMainFileName() const { } ASTUnit *ASTUnit::create(CompilerInvocation *CI, - llvm::IntrusiveRefCntPtr Diags, + IntrusiveRefCntPtr Diags, bool CaptureDiagnostics) { OwningPtr AST; AST.reset(new ASTUnit(false)); @@ -1661,7 +1661,7 @@ ASTUnit *ASTUnit::create(CompilerInvocation *CI, } ASTUnit *ASTUnit::LoadFromCompilerInvocationAction(CompilerInvocation *CI, - llvm::IntrusiveRefCntPtr Diags, + IntrusiveRefCntPtr Diags, ASTFrontendAction *Action, ASTUnit *Unit, bool Persistent, @@ -1827,7 +1827,7 @@ bool ASTUnit::LoadFromCompilerInvocation(bool PrecompilePreamble) { } ASTUnit *ASTUnit::LoadFromCompilerInvocation(CompilerInvocation *CI, - llvm::IntrusiveRefCntPtr Diags, + IntrusiveRefCntPtr Diags, bool OnlyLocalDecls, bool CaptureDiagnostics, bool PrecompilePreamble, @@ -1858,7 +1858,7 @@ ASTUnit *ASTUnit::LoadFromCompilerInvocation(CompilerInvocation *CI, ASTUnit *ASTUnit::LoadFromCommandLine(const char **ArgBegin, const char **ArgEnd, - llvm::IntrusiveRefCntPtr Diags, + IntrusiveRefCntPtr Diags, StringRef ResourceFilesPath, bool OnlyLocalDecls, bool CaptureDiagnostics, @@ -1879,7 +1879,7 @@ ASTUnit *ASTUnit::LoadFromCommandLine(const char **ArgBegin, SmallVector StoredDiagnostics; - llvm::IntrusiveRefCntPtr CI; + IntrusiveRefCntPtr CI; { @@ -2252,7 +2252,7 @@ void ASTUnit::CodeComplete(StringRef File, unsigned Line, unsigned Column, CompletionTimer.setOutput("Code completion @ " + File + ":" + Twine(Line) + ":" + Twine(Column)); - llvm::IntrusiveRefCntPtr + IntrusiveRefCntPtr CCInvocation(new CompilerInvocation(*Invocation)); FrontendOptions &FrontendOpts = CCInvocation->getFrontendOpts(); diff --git a/lib/Frontend/ChainedIncludesSource.cpp b/lib/Frontend/ChainedIncludesSource.cpp index 4ecc052198..c46743d13f 100644 --- a/lib/Frontend/ChainedIncludesSource.cpp +++ b/lib/Frontend/ChainedIncludesSource.cpp @@ -87,8 +87,8 @@ ChainedIncludesSource *ChainedIncludesSource::create(CompilerInstance &CI) { TextDiagnosticPrinter *DiagClient = new TextDiagnosticPrinter(llvm::errs(), DiagnosticOptions()); - llvm::IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); - llvm::IntrusiveRefCntPtr Diags( + IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); + IntrusiveRefCntPtr Diags( new DiagnosticsEngine(DiagID, DiagClient)); OwningPtr Clang(new CompilerInstance()); diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index 1a6876c4ad..8d84277f01 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/lib/Frontend/CompilerInstance.cpp @@ -175,15 +175,15 @@ void CompilerInstance::createDiagnostics(int Argc, const char* const *Argv, &getCodeGenOpts()); } -llvm::IntrusiveRefCntPtr +IntrusiveRefCntPtr CompilerInstance::createDiagnostics(const DiagnosticOptions &Opts, int Argc, const char* const *Argv, DiagnosticConsumer *Client, bool ShouldOwnClient, bool ShouldCloneClient, const CodeGenOptions *CodeGenOpts) { - llvm::IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); - llvm::IntrusiveRefCntPtr + IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); + IntrusiveRefCntPtr Diags(new DiagnosticsEngine(DiagID)); // Create the diagnostic client for reporting errors or for @@ -734,7 +734,7 @@ static void compileModule(CompilerInstance &ImportingInstance, = ImportingInstance.getPreprocessor().getHeaderSearchInfo().getModuleMap(); // Construct a compiler invocation for creating this module. - llvm::IntrusiveRefCntPtr Invocation + IntrusiveRefCntPtr Invocation (new CompilerInvocation(ImportingInstance.getInvocation())); PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index d4188969d3..862a6547f8 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -38,7 +38,7 @@ CompilerInvocationBase::CompilerInvocationBase() : LangOpts(new LangOptions()) {} CompilerInvocationBase::CompilerInvocationBase(const CompilerInvocationBase &X) - : llvm::RefCountedBase(), + : RefCountedBase(), LangOpts(new LangOptions(*X.getLangOpts())) {} //===----------------------------------------------------------------------===// diff --git a/lib/Frontend/CreateInvocationFromCommandLine.cpp b/lib/Frontend/CreateInvocationFromCommandLine.cpp index 653da75f25..b477adebad 100644 --- a/lib/Frontend/CreateInvocationFromCommandLine.cpp +++ b/lib/Frontend/CreateInvocationFromCommandLine.cpp @@ -30,7 +30,7 @@ using namespace clang; /// argument vector. CompilerInvocation * clang::createInvocationFromCommandLine(ArrayRef ArgList, - llvm::IntrusiveRefCntPtr Diags) { + IntrusiveRefCntPtr Diags) { if (!Diags.getPtr()) { // No diagnostics engine was provided, so create our own diagnostics object // with the default options. diff --git a/lib/Frontend/FrontendAction.cpp b/lib/Frontend/FrontendAction.cpp index 307b083e4b..4bc6dada70 100644 --- a/lib/Frontend/FrontendAction.cpp +++ b/lib/Frontend/FrontendAction.cpp @@ -173,7 +173,7 @@ bool FrontendAction::BeginSourceFile(CompilerInstance &CI, assert(hasASTFileSupport() && "This action does not have AST file support!"); - llvm::IntrusiveRefCntPtr Diags(&CI.getDiagnostics()); + IntrusiveRefCntPtr Diags(&CI.getDiagnostics()); std::string Error; ASTUnit *AST = ASTUnit::LoadFromASTFile(Input.File, Diags, CI.getFileSystemOpts()); diff --git a/lib/Frontend/Warnings.cpp b/lib/Frontend/Warnings.cpp index 1866949e15..ec5fde0c3e 100644 --- a/lib/Frontend/Warnings.cpp +++ b/lib/Frontend/Warnings.cpp @@ -73,7 +73,7 @@ void clang::ProcessWarningOptions(DiagnosticsEngine &Diags, Diags.setExtensionHandlingBehavior(DiagnosticsEngine::Ext_Ignore); llvm::SmallVector _Diags; - const llvm::IntrusiveRefCntPtr< DiagnosticIDs > DiagIDs = + const IntrusiveRefCntPtr< DiagnosticIDs > DiagIDs = Diags.getDiagnosticIDs(); // We parse the warning options twice. The first pass sets diagnostic state, // while the second pass reports warnings/errors. This has the effect that diff --git a/lib/Lex/ModuleMap.cpp b/lib/Lex/ModuleMap.cpp index 1f56a2f941..28043d1198 100644 --- a/lib/Lex/ModuleMap.cpp +++ b/lib/Lex/ModuleMap.cpp @@ -73,8 +73,8 @@ ModuleMap::ModuleMap(FileManager &FileMgr, const DiagnosticConsumer &DC, const LangOptions &LangOpts, const TargetInfo *Target) : LangOpts(LangOpts), Target(Target), BuiltinIncludeDir(0) { - llvm::IntrusiveRefCntPtr DiagIDs(new DiagnosticIDs); - Diags = llvm::IntrusiveRefCntPtr( + IntrusiveRefCntPtr DiagIDs(new DiagnosticIDs); + Diags = IntrusiveRefCntPtr( new DiagnosticsEngine(DiagIDs)); Diags->setClient(DC.clone(*Diags), /*ShouldOwnClient=*/true); SourceMgr = new SourceManager(*Diags, FileMgr); diff --git a/lib/StaticAnalyzer/Core/BugReporter.cpp b/lib/StaticAnalyzer/Core/BugReporter.cpp index 642b6e394f..0df71f21fb 100644 --- a/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -1550,10 +1550,10 @@ MakeReportGraph(const ExplodedGraph* G, /// CompactPathDiagnostic - This function postprocesses a PathDiagnostic object /// and collapses PathDiagosticPieces that are expanded by macros. static void CompactPathDiagnostic(PathDiagnostic &PD, const SourceManager& SM) { - typedef std::vector, SourceLocation> > + typedef std::vector, SourceLocation> > MacroStackTy; - typedef std::vector > + typedef std::vector > PiecesTy; MacroStackTy MacroStack; @@ -1585,7 +1585,7 @@ static void CompactPathDiagnostic(PathDiagnostic &PD, const SourceManager& SM) { // We aren't in the same group. Are we descending into a new macro // or are part of an old one? - llvm::IntrusiveRefCntPtr MacroGroup; + IntrusiveRefCntPtr MacroGroup; SourceLocation ParentInstantiationLoc = InstantiationLoc.isMacroID() ? SM.getExpansionLoc(Loc) : diff --git a/tools/arcmt-test/arcmt-test.cpp b/tools/arcmt-test/arcmt-test.cpp index 0ac7837d3e..881a058c2c 100644 --- a/tools/arcmt-test/arcmt-test.cpp +++ b/tools/arcmt-test/arcmt-test.cpp @@ -107,8 +107,8 @@ static bool checkForMigration(StringRef resourcesPath, ArrayRef Args) { DiagnosticConsumer *DiagClient = new TextDiagnosticPrinter(llvm::errs(), DiagnosticOptions()); - llvm::IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); - llvm::IntrusiveRefCntPtr Diags( + IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); + IntrusiveRefCntPtr Diags( new DiagnosticsEngine(DiagID, DiagClient)); // Chain in -verify checker, if requested. VerifyDiagnosticConsumer *verifyDiag = 0; @@ -153,8 +153,8 @@ static bool performTransformations(StringRef resourcesPath, DiagnosticConsumer *DiagClient = new TextDiagnosticPrinter(llvm::errs(), DiagnosticOptions()); - llvm::IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); - llvm::IntrusiveRefCntPtr TopDiags( + IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); + IntrusiveRefCntPtr TopDiags( new DiagnosticsEngine(DiagID, DiagClient)); CompilerInvocation origCI; diff --git a/tools/driver/cc1_main.cpp b/tools/driver/cc1_main.cpp index e491d6199a..a211090085 100644 --- a/tools/driver/cc1_main.cpp +++ b/tools/driver/cc1_main.cpp @@ -118,7 +118,7 @@ static int cc1_test(DiagnosticsEngine &Diags, int cc1_main(const char **ArgBegin, const char **ArgEnd, const char *Argv0, void *MainAddr) { OwningPtr Clang(new CompilerInstance()); - llvm::IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); + IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); // Run clang -cc1 test. if (ArgBegin != ArgEnd && StringRef(ArgBegin[0]) == "-cc1test") { diff --git a/tools/driver/cc1as_main.cpp b/tools/driver/cc1as_main.cpp index cc4400ab31..94e91bddcb 100644 --- a/tools/driver/cc1as_main.cpp +++ b/tools/driver/cc1as_main.cpp @@ -396,7 +396,7 @@ int cc1as_main(const char **ArgBegin, const char **ArgEnd, TextDiagnosticPrinter *DiagClient = new TextDiagnosticPrinter(errs(), DiagnosticOptions()); DiagClient->setPrefix("clang -cc1as"); - llvm::IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); + IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); DiagnosticsEngine Diags(DiagID, DiagClient); // Set an error handler, so that any LLVM backend diagnostics go through our diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp index e846b091c5..9e666eb43f 100644 --- a/tools/driver/driver.cpp +++ b/tools/driver/driver.cpp @@ -373,7 +373,7 @@ int main(int argc_, const char **argv_) { TextDiagnosticPrinter *DiagClient = new TextDiagnosticPrinter(llvm::errs(), DiagnosticOptions()); DiagClient->setPrefix(llvm::sys::path::stem(Path.str())); - llvm::IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); + IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); DiagnosticsEngine Diags(DiagID, DiagClient); #ifdef CLANG_IS_PRODUCTION diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index 2ab693e183..8d0f5fa76f 100644 --- a/tools/libclang/CIndex.cpp +++ b/tools/libclang/CIndex.cpp @@ -2429,7 +2429,7 @@ CXTranslationUnit clang_createTranslationUnit(CXIndex CIdx, FileSystemOptions FileSystemOpts; FileSystemOpts.WorkingDir = CXXIdx->getWorkingDirectory(); - llvm::IntrusiveRefCntPtr Diags; + IntrusiveRefCntPtr Diags; ASTUnit *TU = ASTUnit::LoadFromASTFile(ast_filename, Diags, FileSystemOpts, CXXIdx->getOnlyLocalDecls(), 0, 0, true); @@ -2492,7 +2492,7 @@ static void clang_parseTranslationUnit_Impl(void *UserData) { // Configure the diagnostics. DiagnosticOptions DiagOpts; - llvm::IntrusiveRefCntPtr + IntrusiveRefCntPtr Diags(CompilerInstance::createDiagnostics(DiagOpts, num_command_line_args, command_line_args)); diff --git a/tools/libclang/CIndexCodeCompletion.cpp b/tools/libclang/CIndexCodeCompletion.cpp index 417505a76c..caf8fe7fd1 100644 --- a/tools/libclang/CIndexCodeCompletion.cpp +++ b/tools/libclang/CIndexCodeCompletion.cpp @@ -224,7 +224,7 @@ struct AllocatedCXCodeCompleteResults : public CXCodeCompleteResults { SmallVector Diagnostics; /// \brief Diag object - llvm::IntrusiveRefCntPtr Diag; + IntrusiveRefCntPtr Diag; /// \brief Language options used to adjust source locations. LangOptions LangOpts; @@ -232,10 +232,10 @@ struct AllocatedCXCodeCompleteResults : public CXCodeCompleteResults { FileSystemOptions FileSystemOpts; /// \brief File manager, used for diagnostics. - llvm::IntrusiveRefCntPtr FileMgr; + IntrusiveRefCntPtr FileMgr; /// \brief Source manager, used for diagnostics. - llvm::IntrusiveRefCntPtr SourceMgr; + IntrusiveRefCntPtr SourceMgr; /// \brief Temporary files that should be removed once we have finished /// with the code-completion results. @@ -246,7 +246,7 @@ struct AllocatedCXCodeCompleteResults : public CXCodeCompleteResults { SmallVector TemporaryBuffers; /// \brief Allocator used to store globally cached code-completion results. - llvm::IntrusiveRefCntPtr + IntrusiveRefCntPtr CachedCompletionAllocator; /// \brief Allocator used to store code completion results. @@ -282,7 +282,7 @@ AllocatedCXCodeCompleteResults::AllocatedCXCodeCompleteResults( const FileSystemOptions& FileSystemOpts) : CXCodeCompleteResults(), Diag(new DiagnosticsEngine( - llvm::IntrusiveRefCntPtr(new DiagnosticIDs))), + IntrusiveRefCntPtr(new DiagnosticIDs))), FileSystemOpts(FileSystemOpts), FileMgr(new FileManager(FileSystemOpts)), SourceMgr(new SourceManager(*Diag, *FileMgr)), diff --git a/tools/libclang/Indexing.cpp b/tools/libclang/Indexing.cpp index d1af38887b..69ddc42b76 100644 --- a/tools/libclang/Indexing.cpp +++ b/tools/libclang/Indexing.cpp @@ -279,7 +279,7 @@ static void clang_indexSourceFile_Impl(void *UserData) { // Configure the diagnostics. DiagnosticOptions DiagOpts; - llvm::IntrusiveRefCntPtr + IntrusiveRefCntPtr Diags(CompilerInstance::createDiagnostics(DiagOpts, num_command_line_args, command_line_args, CaptureDiag, @@ -309,7 +309,7 @@ static void clang_indexSourceFile_Impl(void *UserData) { if (source_filename) Args->push_back(source_filename); - llvm::IntrusiveRefCntPtr + IntrusiveRefCntPtr CInvok(createInvocationFromCommandLine(*Args, Diags)); if (!CInvok) diff --git a/tools/libclang/IndexingContext.h b/tools/libclang/IndexingContext.h index 66c635d6b9..ea457052b4 100644 --- a/tools/libclang/IndexingContext.h +++ b/tools/libclang/IndexingContext.h @@ -30,7 +30,7 @@ namespace cxindex { struct EntityInfo : public CXIdxEntityInfo { const NamedDecl *Dcl; IndexingContext *IndexCtx; - llvm::IntrusiveRefCntPtr AttrList; + IntrusiveRefCntPtr AttrList; EntityInfo() { name = USR = 0; diff --git a/unittests/Basic/SourceManagerTest.cpp b/unittests/Basic/SourceManagerTest.cpp index 14f5b22a0c..65d57b67b5 100644 --- a/unittests/Basic/SourceManagerTest.cpp +++ b/unittests/Basic/SourceManagerTest.cpp @@ -40,12 +40,12 @@ protected: FileSystemOptions FileMgrOpts; FileManager FileMgr; - llvm::IntrusiveRefCntPtr DiagID; + IntrusiveRefCntPtr DiagID; DiagnosticsEngine Diags; SourceManager SourceMgr; LangOptions LangOpts; TargetOptions TargetOpts; - llvm::IntrusiveRefCntPtr Target; + IntrusiveRefCntPtr Target; }; class VoidModuleLoader : public ModuleLoader { diff --git a/unittests/Lex/LexerTest.cpp b/unittests/Lex/LexerTest.cpp index 28199c4aac..584ca10365 100644 --- a/unittests/Lex/LexerTest.cpp +++ b/unittests/Lex/LexerTest.cpp @@ -39,12 +39,12 @@ protected: FileSystemOptions FileMgrOpts; FileManager FileMgr; - llvm::IntrusiveRefCntPtr DiagID; + IntrusiveRefCntPtr DiagID; DiagnosticsEngine Diags; SourceManager SourceMgr; LangOptions LangOpts; TargetOptions TargetOpts; - llvm::IntrusiveRefCntPtr Target; + IntrusiveRefCntPtr Target; }; class VoidModuleLoader : public ModuleLoader { -- 2.40.0