[Stats] Only use input filename, not mangled path, in stats file name.

This was causing cases of very long input pathnames to be mangled into
stats filenames greater than 255 characters long, which in turn meant
stats files were not being written in some cases.
This commit is contained in:
Graydon Hoare
2017-10-03 17:10:25 -07:00
parent 77554c1ae2
commit 0e5b982d25

View File

@@ -100,6 +100,8 @@ auxName(StringRef ModuleName,
if (InputName.empty()) { if (InputName.empty()) {
InputName = "all"; InputName = "all";
} }
// Dispose of path prefix, which might make composite name too long.
InputName = path::filename(InputName);
if (OptType.empty()) { if (OptType.empty()) {
OptType = "Onone"; OptType = "Onone";
} }