Skip to content

Commit 71d057a

Browse files
committed
[llvm-objdump] Remove redundant code
1 parent 52720f9 commit 71d057a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

llvm/tools/llvm-objdump/SourcePrinter.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@ void InlinedFunction::dump(raw_ostream &OS) const {
5050
void InlinedFunction::printElementLine(raw_ostream &OS,
5151
object::SectionedAddress Addr,
5252
bool IsEnd) const {
53-
bool LiveIn = !IsEnd && Range.LowPC == Addr.Address;
54-
bool LiveOut = IsEnd && Range.HighPC == Addr.Address;
55-
// This check is technically redundant as the function is only called when
56-
// either a start or end address matches, but it serves as a small safeguard.
57-
if (!(LiveIn || LiveOut))
58-
return;
59-
6053
uint32_t CallFile, CallLine, CallColumn, CallDiscriminator;
6154
InlinedFuncDie.getCallerFrame(CallFile, CallLine, CallColumn,
6255
CallDiscriminator);

0 commit comments

Comments
 (0)