diff options
author | Fangrui Song <maskray@google.com> | 2019-04-29 08:15:13 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-04-29 08:15:13 +0000 |
commit | cc1fec31d9c00c8df0d226f5a71ead55f9cf0ec2 (patch) | |
tree | a5c34755d6dcebe493d16615251596f43c104488 /llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp | |
parent | cb929dcebe444be9bd20adfa7eb3f92c40b8b183 (diff) | |
download | bcm5719-llvm-cc1fec31d9c00c8df0d226f5a71ead55f9cf0ec2.tar.gz bcm5719-llvm-cc1fec31d9c00c8df0d226f5a71ead55f9cf0ec2.zip |
[DWARF] Delete a redundant check in getFileNameByIndex()
llvm-svn: 359422
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp index 41d9928d72f..1f18973f1d4 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp @@ -1032,8 +1032,7 @@ bool DWARFDebugLine::LineTable::getFileNameByIndex(uint64_t FileIndex, // We may still need to append compilation directory of compile unit. // We know that FileName is not absolute, the only way to have an // absolute path at this point would be if IncludeDir is absolute. - if (CompDir && Kind == FileLineInfoKind::AbsoluteFilePath && - !isPathAbsoluteOnWindowsOrPosix(IncludeDir)) + if (CompDir && !isPathAbsoluteOnWindowsOrPosix(IncludeDir)) sys::path::append(FilePath, CompDir); // sys::path::append skips empty strings. |