DwarfDebug: Remove some needless recursion.

llvm-svn: 203946
This commit is contained in:
David Blaikie 2014-03-14 16:33:32 +00:00
parent 9ddbf59109
commit edc1753ba3
1 changed files with 4 additions and 2 deletions

View File

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