forked from OSchip/llvm-project
parent
96327eaa52
commit
ad7cdd37b3
|
@ -839,7 +839,7 @@ static void ProcessInputFile(const std::string &InFile,
|
|||
FileManager &FileMgr = HeaderInfo.getFileMgr();
|
||||
|
||||
// Set up the preprocessor with these options.
|
||||
Preprocessor PP(Diags, LangInfo, Target, FileMgr, SourceMgr, HeaderInfo);
|
||||
Preprocessor PP(Diags, LangInfo, Target, SourceMgr, HeaderInfo);
|
||||
|
||||
// Install things like __POWERPC__, __GNUC__, etc into the macro table.
|
||||
std::vector<char> PrologMacros;
|
||||
|
@ -935,8 +935,8 @@ static void ProcessInputFile(const std::string &InFile,
|
|||
}
|
||||
|
||||
if (Stats) {
|
||||
PP.getIdentifierTable().PrintStats();
|
||||
PP.PrintStats();
|
||||
PP.getIdentifierTable().PrintStats();
|
||||
std::cerr << "\n";
|
||||
}
|
||||
}
|
||||
|
@ -995,10 +995,10 @@ int main(int argc, char **argv) {
|
|||
std::cerr << NumDiagnostics << " diagnostics generated.\n";
|
||||
|
||||
if (Stats) {
|
||||
// Printed from low-to-high level.
|
||||
FileMgr.PrintStats();
|
||||
SourceMgr.PrintStats();
|
||||
// Printed from high-to-low level.
|
||||
HeaderInfo.PrintStats();
|
||||
SourceMgr.PrintStats();
|
||||
FileMgr.PrintStats();
|
||||
std::cerr << "\n";
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ class Preprocessor {
|
|||
unsigned NumSkipped;
|
||||
public:
|
||||
Preprocessor(Diagnostic &diags, const LangOptions &opts, TargetInfo &target,
|
||||
FileManager &FM, SourceManager &SM, HeaderSearch &Headers);
|
||||
SourceManager &SM, HeaderSearch &Headers);
|
||||
~Preprocessor();
|
||||
|
||||
Diagnostic &getDiagnostics() const { return Diags; }
|
||||
|
|
Loading…
Reference in New Issue