From 772553c418344b6943a468b79e043180840eb255 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 9 Jun 2017 01:36:10 +0000 Subject: 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 --- unittests/Frontend/FrontendActionTest.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'unittests/Frontend') 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 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 CreateASTConsumer(CompilerInstance &CI, -- cgit v1.2.1