forked from OSchip/llvm-project
DwarfDebug: Remove some needless recursion.
llvm-svn: 203946
This commit is contained in:
parent
9ddbf59109
commit
edc1753ba3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue