1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

DwarfDebug: Remove some needless recursion.

llvm-svn: 203946
This commit is contained in:
David Blaikie 2014-03-14 16:33:32 +00:00
parent d882b68f5a
commit cee98394ad

View File

@ -689,8 +689,10 @@ unsigned DwarfDebug::getOrCreateSourceID(StringRef FileName, StringRef DirName,
CUID = 0;
// If FE did not provide a file name, then assume stdin.
if (FileName.empty())
return getOrCreateSourceID("<stdin>", StringRef(), CUID);
if (FileName.empty()) {
FileName = "<stdin>";
DirName = "";
}
// TODO: this might not belong here. See if we can factor this better.
if (DirName == CompilationDir)