Extract the (InputKind, std::string) pair used to describe inputs to
the front end into its own class, FrontendInputFile, to make it easier to introduce new per-input data. No functionality change. llvm-svn: 148546
This commit is contained in:
@@ -26,8 +26,7 @@ bool ASTMergeAction::BeginSourceFileAction(CompilerInstance &CI,
|
||||
// FIXME: This is a hack. We need a better way to communicate the
|
||||
// AST file, compiler instance, and file name than member variables
|
||||
// of FrontendAction.
|
||||
AdaptedAction->setCurrentFile(getCurrentFile(), getCurrentFileKind(),
|
||||
takeCurrentASTUnit());
|
||||
AdaptedAction->setCurrentInput(getCurrentInput(), takeCurrentASTUnit());
|
||||
AdaptedAction->setCompilerInstance(&CI);
|
||||
return AdaptedAction->BeginSourceFileAction(CI, Filename);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user