[PCH] Remove the ASTReaderListener::ReadHeaderFileInfo callback.
This made sense in pre-module era, before merging of HeaderFileInfos was introduced. Final part of rdar://13840148. llvm-svn: 181490
This commit is contained in:
@@ -509,23 +509,19 @@ class ASTInfoCollector : public ASTReaderListener {
|
||||
Preprocessor &PP;
|
||||
ASTContext &Context;
|
||||
LangOptions &LangOpt;
|
||||
HeaderSearch &HSI;
|
||||
IntrusiveRefCntPtr<TargetOptions> &TargetOpts;
|
||||
IntrusiveRefCntPtr<TargetInfo> &Target;
|
||||
unsigned &Counter;
|
||||
|
||||
unsigned NumHeaderInfos;
|
||||
|
||||
bool InitializedLanguage;
|
||||
public:
|
||||
ASTInfoCollector(Preprocessor &PP, ASTContext &Context, LangOptions &LangOpt,
|
||||
HeaderSearch &HSI,
|
||||
IntrusiveRefCntPtr<TargetOptions> &TargetOpts,
|
||||
IntrusiveRefCntPtr<TargetInfo> &Target,
|
||||
unsigned &Counter)
|
||||
: PP(PP), Context(Context), LangOpt(LangOpt), HSI(HSI),
|
||||
: PP(PP), Context(Context), LangOpt(LangOpt),
|
||||
TargetOpts(TargetOpts), Target(Target),
|
||||
Counter(Counter), NumHeaderInfos(0),
|
||||
Counter(Counter),
|
||||
InitializedLanguage(false) {}
|
||||
|
||||
virtual bool ReadLanguageOptions(const LangOptions &LangOpts,
|
||||
@@ -554,10 +550,6 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual void ReadHeaderFileInfo(const HeaderFileInfo &HFI, unsigned ID) {
|
||||
HSI.setHeaderFileInfoForUID(HFI, NumHeaderInfos++);
|
||||
}
|
||||
|
||||
virtual void ReadCounter(const serialization::ModuleFile &M, unsigned Value) {
|
||||
Counter = Value;
|
||||
}
|
||||
@@ -798,7 +790,7 @@ ASTUnit *ASTUnit::LoadFromASTFile(const std::string &Filename,
|
||||
ReaderCleanup(Reader.get());
|
||||
|
||||
Reader->setListener(new ASTInfoCollector(*AST->PP, Context,
|
||||
AST->ASTFileLangOpts, HeaderInfo,
|
||||
AST->ASTFileLangOpts,
|
||||
AST->TargetOpts, AST->Target,
|
||||
Counter));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user