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:
parent
d882b68f5a
commit
cee98394ad
@ -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
Block a user