mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-05 18:17:00 +00:00
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:
parent
4fc4769a53
commit
2bc7715df9
@ -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…
x
Reference in New Issue
Block a user