forked from OSchip/llvm-project
Make DiagnosticsEngine() take DiagOpts as DiagnosticsEngine.
No behavior change, but makes it a bit clearer that DiagnosticsEngine adds a ref to DiagOpts. llvm-svn: 322611
This commit is contained in:
parent
620a7f765d
commit
8321ad9ffc
|
@ -402,7 +402,7 @@ private:
|
|||
|
||||
public:
|
||||
explicit DiagnosticsEngine(IntrusiveRefCntPtr<DiagnosticIDs> Diags,
|
||||
DiagnosticOptions *DiagOpts,
|
||||
IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts,
|
||||
DiagnosticConsumer *client = nullptr,
|
||||
bool ShouldOwnClient = true);
|
||||
DiagnosticsEngine(const DiagnosticsEngine &) = delete;
|
||||
|
|
|
@ -57,11 +57,11 @@ static void DummyArgToStringFn(DiagnosticsEngine::ArgumentKind AK, intptr_t QT,
|
|||
Output.append(Str.begin(), Str.end());
|
||||
}
|
||||
|
||||
DiagnosticsEngine::DiagnosticsEngine(IntrusiveRefCntPtr<DiagnosticIDs> diags,
|
||||
DiagnosticOptions *DiagOpts,
|
||||
DiagnosticConsumer *client,
|
||||
bool ShouldOwnClient)
|
||||
: Diags(std::move(diags)), DiagOpts(DiagOpts), Client(nullptr),
|
||||
DiagnosticsEngine::DiagnosticsEngine(
|
||||
IntrusiveRefCntPtr<DiagnosticIDs> diags,
|
||||
IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts, DiagnosticConsumer *client,
|
||||
bool ShouldOwnClient)
|
||||
: Diags(std::move(diags)), DiagOpts(std::move(DiagOpts)), Client(nullptr),
|
||||
SourceMgr(nullptr) {
|
||||
setClient(client, ShouldOwnClient);
|
||||
ArgToStringFn = DummyArgToStringFn;
|
||||
|
|
Loading…
Reference in New Issue