diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-06-09 01:36:10 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-06-09 01:36:10 +0000 |
commit | d9259c2f5e29875fc0223ebf1c9427f197af212b (patch) | |
tree | 4fc98adfbb114c1fc0cc5bb805eed2a2cc90ba9a /clang/lib/Frontend/ASTMerge.cpp | |
parent | 735e92c29a1413761c6db5e1ae8e7ad48ae17d67 (diff) | |
download | llvm-d9259c2f5e29875fc0223ebf1c9427f197af212b.zip llvm-d9259c2f5e29875fc0223ebf1c9427f197af212b.tar.gz llvm-d9259c2f5e29875fc0223ebf1c9427f197af212b.tar.bz2 |
Remove 'Filename' parameter from BeginSourceFileAction.
No-one was using this, and it's not meaningful in general -- FrontendActions
can be run on inputs that don't have a corresponding source file. The current
frontend input can be obtained by asking the FrontendAction if any future
action actually needs it.
llvm-svn: 305045
Diffstat (limited to 'clang/lib/Frontend/ASTMerge.cpp')
-rw-r--r-- | clang/lib/Frontend/ASTMerge.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Frontend/ASTMerge.cpp b/clang/lib/Frontend/ASTMerge.cpp index 51064da2..986f98ae 100644 --- a/clang/lib/Frontend/ASTMerge.cpp +++ b/clang/lib/Frontend/ASTMerge.cpp @@ -21,14 +21,13 @@ ASTMergeAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { return AdaptedAction->CreateASTConsumer(CI, InFile); } -bool ASTMergeAction::BeginSourceFileAction(CompilerInstance &CI, - StringRef Filename) { +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->setCurrentInput(getCurrentInput(), takeCurrentASTUnit()); AdaptedAction->setCompilerInstance(&CI); - return AdaptedAction->BeginSourceFileAction(CI, Filename); + return AdaptedAction->BeginSourceFileAction(CI); } void ASTMergeAction::ExecuteAction() { |