[Stats] Tidy up stray characters in filenames.

This commit is contained in:
Graydon Hoare
2017-06-02 23:42:38 -07:00
parent d834929d64
commit 7fc8bd270b
3 changed files with 14 additions and 5 deletions

View File

@@ -1208,9 +1208,6 @@ int swift::performFrontend(ArrayRef<const char *> Args,
StringRef OptType = silOptModeArgStr(SILOpts.Optimization);
StringRef OutFile = FEOpts.getSingleOutputFilename();
StringRef OutputType = llvm::sys::path::extension(OutFile);
if (OutputType.size() > 0 && OutputType.front() == '.') {
OutputType = OutputType.substr(1);
}
std::string TripleName = LangOpts.Target.normalize();
StatsReporter = llvm::make_unique<UnifiedStatsReporter>("swift-frontend",
FEOpts.ModuleName,