summaryrefslogtreecommitdiffstats
path: root/clang/Lex
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-11-21 06:08:20 +0000
committerChris Lattner <sabre@nondot.org>2006-11-21 06:08:20 +0000
commitad7cdd37b3f99a4d6ea37a71c46aa76a4d1bde54 (patch)
tree1d026c3787d34963fe826af2be51eaa4ddce692d /clang/Lex
parent96327eaa52cb5c6cc783a9429547771d83a2a209 (diff)
downloadbcm5719-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.cpp7
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);
OpenPOWER on IntegriCloud