File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ class CompilerInvocationBase {
89
89
std::shared_ptr<PreprocessorOptions> PPOpts;
90
90
91
91
// / Options controlling the static analyzer.
92
- AnalyzerOptionsRef AnalyzerOpts;
92
+ std::shared_ptr<AnalyzerOptions> AnalyzerOpts;
93
93
94
94
std::shared_ptr<MigratorOptions> MigratorOpts;
95
95
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ class PositiveAnalyzerOption {
176
176
// / and should be eventually converted into -analyzer-config flags. New analyzer
177
177
// / options should not be implemented as frontend flags. Frontend flags still
178
178
// / make sense for things that do not affect the actual analysis.
179
- class AnalyzerOptions : public RefCountedBase <AnalyzerOptions> {
179
+ class AnalyzerOptions {
180
180
public:
181
181
using ConfigTable = llvm::StringMap<std::string>;
182
182
@@ -416,8 +416,6 @@ class AnalyzerOptions : public RefCountedBase<AnalyzerOptions> {
416
416
}
417
417
};
418
418
419
- using AnalyzerOptionsRef = IntrusiveRefCntPtr<AnalyzerOptions>;
420
-
421
419
// ===----------------------------------------------------------------------===//
422
420
// We'll use AnalyzerOptions in the frontend, but we can't link the frontend
423
421
// with clangStaticAnalyzerCore, because clangStaticAnalyzerCore depends on
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ CompilerInvocationBase::CompilerInvocationBase()
142
142
DiagnosticOpts(llvm::makeIntrusiveRefCnt<DiagnosticOptions>()),
143
143
HSOpts(std::make_shared<HeaderSearchOptions>()),
144
144
PPOpts(std::make_shared<PreprocessorOptions>()),
145
- AnalyzerOpts(llvm::makeIntrusiveRefCnt <AnalyzerOptions>()),
145
+ AnalyzerOpts(std::make_shared <AnalyzerOptions>()),
146
146
MigratorOpts(std::make_shared<MigratorOptions>()),
147
147
APINotesOpts(std::make_shared<APINotesOptions>()),
148
148
CodeGenOpts(std::make_shared<CodeGenOptions>()),
@@ -159,7 +159,7 @@ CompilerInvocationBase::deep_copy_assign(const CompilerInvocationBase &X) {
159
159
DiagnosticOpts = makeIntrusiveRefCntCopy (X.getDiagnosticOpts ());
160
160
HSOpts = make_shared_copy (X.getHeaderSearchOpts ());
161
161
PPOpts = make_shared_copy (X.getPreprocessorOpts ());
162
- AnalyzerOpts = makeIntrusiveRefCntCopy (X.getAnalyzerOpts ());
162
+ AnalyzerOpts = make_shared_copy (X.getAnalyzerOpts ());
163
163
MigratorOpts = make_shared_copy (X.getMigratorOpts ());
164
164
APINotesOpts = make_shared_copy (X.getAPINotesOpts ());
165
165
CodeGenOpts = make_shared_copy (X.getCodeGenOpts ());
You can’t perform that action at this time.
0 commit comments