diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-11-21 06:08:20 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-11-21 06:08:20 +0000 |
| commit | ad7cdd37b3f99a4d6ea37a71c46aa76a4d1bde54 (patch) | |
| tree | 1d026c3787d34963fe826af2be51eaa4ddce692d /clang/Lex | |
| parent | 96327eaa52cb5c6cc783a9429547771d83a2a209 (diff) | |
| download | bcm5719-llvm-ad7cdd37b3f99a4d6ea37a71c46aa76a4d1bde54.tar.gz bcm5719-llvm-ad7cdd37b3f99a4d6ea37a71c46aa76a4d1bde54.zip | |
simplify the Preprocessor ctor.
llvm-svn: 39208
Diffstat (limited to 'clang/Lex')
| -rw-r--r-- | clang/Lex/Preprocessor.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/Lex/Preprocessor.cpp b/clang/Lex/Preprocessor.cpp index ee031691979..b122b0a2e16 100644 --- a/clang/Lex/Preprocessor.cpp +++ b/clang/Lex/Preprocessor.cpp @@ -43,11 +43,10 @@ using namespace clang; //===----------------------------------------------------------------------===// Preprocessor::Preprocessor(Diagnostic &diags, const LangOptions &opts, - TargetInfo &target, - FileManager &FM, SourceManager &SM, + TargetInfo &target, SourceManager &SM, HeaderSearch &Headers) - : Diags(diags), Features(opts), Target(target), FileMgr(FM), SourceMgr(SM), - HeaderInfo(Headers), Identifiers(opts), + : Diags(diags), Features(opts), Target(target), FileMgr(Headers.getFileMgr()), + SourceMgr(SM), HeaderInfo(Headers), Identifiers(opts), CurLexer(0), CurDirLookup(0), CurMacroExpander(0), Callbacks(0) { ScratchBuf = new ScratchBuffer(SourceMgr); |

