Fixup unit tests for DiagnosticOptions change

llvm-svn: 166509
This commit is contained in:
Douglas Gregor 2012-10-23 22:31:51 +00:00
parent 811db4eac4
commit d8cfd399fa
4 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ protected:
CommentLexerTest() CommentLexerTest()
: FileMgr(FileMgrOpts), : FileMgr(FileMgrOpts),
DiagID(new DiagnosticIDs()), DiagID(new DiagnosticIDs()),
Diags(DiagID, new IgnoringDiagConsumer()), Diags(DiagID, new DiagnosticOptions, new IgnoringDiagConsumer()),
SourceMgr(Diags, FileMgr), SourceMgr(Diags, FileMgr),
Traits(Allocator) { Traits(Allocator) {
} }

View File

@ -36,7 +36,7 @@ protected:
CommentParserTest() CommentParserTest()
: FileMgr(FileMgrOpts), : FileMgr(FileMgrOpts),
DiagID(new DiagnosticIDs()), DiagID(new DiagnosticIDs()),
Diags(DiagID, new IgnoringDiagConsumer()), Diags(DiagID, new DiagnosticOptions, new IgnoringDiagConsumer()),
SourceMgr(Diags, FileMgr), SourceMgr(Diags, FileMgr),
Traits(Allocator) { Traits(Allocator) {
} }

View File

@ -32,7 +32,7 @@ protected:
SourceManagerTest() SourceManagerTest()
: FileMgr(FileMgrOpts), : FileMgr(FileMgrOpts),
DiagID(new DiagnosticIDs()), DiagID(new DiagnosticIDs()),
Diags(DiagID, new IgnoringDiagConsumer()), Diags(DiagID, new DiagnosticOptions, new IgnoringDiagConsumer()),
SourceMgr(Diags, FileMgr), SourceMgr(Diags, FileMgr),
TargetOpts(new TargetOptions) { TargetOpts(new TargetOptions) {
TargetOpts->Triple = "x86_64-apple-darwin11.1.0"; TargetOpts->Triple = "x86_64-apple-darwin11.1.0";

View File

@ -31,7 +31,7 @@ protected:
LexerTest() LexerTest()
: FileMgr(FileMgrOpts), : FileMgr(FileMgrOpts),
DiagID(new DiagnosticIDs()), DiagID(new DiagnosticIDs()),
Diags(DiagID, new IgnoringDiagConsumer()), Diags(DiagID, new DiagnosticOptions, new IgnoringDiagConsumer()),
SourceMgr(Diags, FileMgr), SourceMgr(Diags, FileMgr),
TargetOpts(new TargetOptions) TargetOpts(new TargetOptions)
{ {