DwarfDebug: Remove some needless recursion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203946 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie 2014-03-14 16:33:32 +00:00
parent 4fc4769a53
commit 2bc7715df9

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)