[NFC] Refactor InputFile's Accessors

This commit is contained in:
Robert Widmann
2020-09-11 21:21:14 -06:00
parent 0a5a6f17c8
commit a8766cce5b
9 changed files with 69 additions and 38 deletions

View File

@@ -179,7 +179,7 @@ bool ModuleInterfaceBuilder::buildSwiftModuleInternal(
bool isTypeChecking =
(FEOpts.RequestedAction == FrontendOptions::ActionType::Typecheck);
const auto &InputInfo = FEOpts.InputsAndOutputs.firstInput();
StringRef InPath = InputInfo.file();
StringRef InPath = InputInfo.getFileName();
const auto &OutputInfo =
InputInfo.getPrimarySpecificPaths().SupplementaryOutputs;
StringRef OutPath = OutputInfo.ModuleOutputPath;