Line number can never contain '/' or '\', so the previous code
was pointless at that point.
llvm-svn: 288973
DILineInfoSpecifier::FileLineInfoKind::AbsoluteFilePath, Info);
if (Info.Line == 0)
return "";
- return convertToUnixPathSeparator(
- Info.FileName + ":" + std::to_string(Info.Line));
+ return convertToUnixPathSeparator(Info.FileName) + ":" +
+ std::to_string(Info.Line);
}
// Returns "(internal)", "foo.a(bar.o)" or "baz.o".
// Replaces backslashes with slashes if Windows.
std::string convertToUnixPathSeparator(StringRef S);
-
}
#endif