From 899292827456532bc66219f9d778595c57614f77 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 30 Jan 2012 06:01:29 +0000 Subject: Thread a TargetInfo through to the module map; we'll need it for target-specific module requirements. llvm-svn: 149224 --- clang/unittests/Basic/SourceManagerTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/unittests/Basic/SourceManagerTest.cpp') diff --git a/clang/unittests/Basic/SourceManagerTest.cpp b/clang/unittests/Basic/SourceManagerTest.cpp index 2dd64f9ac69..1b067b0d0bf 100644 --- a/clang/unittests/Basic/SourceManagerTest.cpp +++ b/clang/unittests/Basic/SourceManagerTest.cpp @@ -63,7 +63,7 @@ TEST_F(SourceManagerTest, isBeforeInTranslationUnit) { FileID mainFileID = SourceMgr.createMainFileIDForMemBuffer(buf); VoidModuleLoader ModLoader; - HeaderSearch HeaderInfo(FileMgr, Diags, LangOpts); + HeaderSearch HeaderInfo(FileMgr, Diags, LangOpts, &*Target); Preprocessor PP(Diags, LangOpts, Target.getPtr(), SourceMgr, HeaderInfo, ModLoader, @@ -130,7 +130,7 @@ TEST_F(SourceManagerTest, getMacroArgExpandedLocation) { SourceMgr.overrideFileContents(headerFile, headerBuf); VoidModuleLoader ModLoader; - HeaderSearch HeaderInfo(FileMgr, Diags, LangOpts); + HeaderSearch HeaderInfo(FileMgr, Diags, LangOpts, &*Target); Preprocessor PP(Diags, LangOpts, Target.getPtr(), SourceMgr, HeaderInfo, ModLoader, -- cgit v1.2.3