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 | 772553c418344b6943a468b79e043180840eb255 (patch) | |
tree | f02a6f512479eac317c00697d16335e7d10a5439 /unittests/Frontend | |
parent | 4ed69c25ab95ef923b9917a3c3599665ca7bbda7 (diff) | |
download | clang-772553c418344b6943a468b79e043180840eb255.tar.gz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305045 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Frontend')
-rw-r--r-- | unittests/Frontend/FrontendActionTest.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/unittests/Frontend/FrontendActionTest.cpp b/unittests/Frontend/FrontendActionTest.cpp index 68181c705c..ce0144538d 100644 --- a/unittests/Frontend/FrontendActionTest.cpp +++ b/unittests/Frontend/FrontendActionTest.cpp @@ -37,12 +37,11 @@ public: bool ActOnEndOfTranslationUnit; std::vector<std::string> decl_names; - bool BeginSourceFileAction(CompilerInstance &ci, - StringRef filename) override { + bool BeginSourceFileAction(CompilerInstance &ci) override { if (EnableIncrementalProcessing) ci.getPreprocessor().enableIncrementalProcessing(); - return ASTFrontendAction::BeginSourceFileAction(ci, filename); + return ASTFrontendAction::BeginSourceFileAction(ci); } std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI, |