Skip to content

Commit 46e487c

Browse files
committed
Deleted test code
1 parent 5465020 commit 46e487c

File tree

5 files changed

+5
-15
lines changed

5 files changed

+5
-15
lines changed

llvm/include/llvm/DebugInfo/DWARF/DWARFFormValue.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ class DWARFFormValue {
8383

8484
LLVM_ABI bool isFormClass(FormClass FC) const;
8585
const DWARFUnit *getUnit() const { return U; }
86-
LLVM_DUMP_METHOD void dump() const;
8786
LLVM_ABI void dump(raw_ostream &OS,
8887
DIDumpOptions DumpOpts = DIDumpOptions()) const;
8988
LLVM_ABI void dumpSectionedAddress(raw_ostream &OS, DIDumpOptions DumpOpts,

llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,6 @@ void DWARFFormValue::dumpAddressSection(const DWARFObject &Obj, raw_ostream &OS,
379379
OS << format(" [%" PRIu64 "]", SectionIndex);
380380
}
381381

382-
LLVM_DUMP_METHOD void DWARFFormValue::dump() const { dump(dbgs()); }
383-
384382
void DWARFFormValue::dump(raw_ostream &OS, DIDumpOptions DumpOpts) const {
385383
uint64_t UValue = Value.uval;
386384
bool CURelativeOffset = false;

llvm/lib/DebugInfo/LogicalView/Core/LVScope.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,6 @@ void LVScope::addElement(LVLine *Line) {
134134
if (!Lines)
135135
Lines = std::make_unique<LVLines>();
136136

137-
if (Line->getAddress() == 0x2fc)
138-
outs() << "Set Parent for line at addr: " << Line->getAddress()
139-
<< "\n ";
140137
// Add it to parent.
141138
Lines->push_back(Line);
142139
Line->setParent(this);

llvm/lib/DebugInfo/LogicalView/Readers/LVBinaryReader.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -733,9 +733,6 @@ void LVBinaryReader::processLines(LVLines *DebugLines,
733733
for (LVLine *Line : *DebugLines) {
734734
// Using the current line address, get its associated lexical scope and
735735
// add the line information to it.
736-
737-
if (Line->getAddress() == 0x2fc)
738-
outs() << "";
739736
Scope = ScopesWithRanges->getEntry(Line->getAddress());
740737
if (!Scope) {
741738
// If missing scope, use the compile unit.

llvm/lib/DebugInfo/LogicalView/Readers/LVDWARFReader.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,6 @@ void LVDWARFReader::processOneAttribute(const DWARFDie &Die,
252252

253253
case dwarf::DW_AT_ranges:
254254
if (RangesDataAvailable && options().getGeneralCollectRanges()) {
255-
if (CurrentScope->getID() == 2237)
256-
outs() << "";
257255
auto GetRanges = [](const DWARFFormValue &FormValue,
258256
DWARFUnit *U) -> Expected<DWARFAddressRangesVector> {
259257
if (FormValue.getForm() == dwarf::DW_FORM_rnglistx)
@@ -463,16 +461,17 @@ LVScope *LVDWARFReader::processOneDie(const DWARFDie &InputDIE, LVScope *Parent,
463461
if (!CurrentRanges.empty()) {
464462
for (LVAddressRange &Range : CurrentRanges)
465463
addSectionRange(SectionIndex, CurrentScope, Range.first,
466-
Range.second > Range.first ? Range.second - 1
467-
: Range.second);
464+
Range.second > Range.first
465+
? Range.second - 1 // Make hi-pc exclusive
466+
: Range.second);
468467
CurrentRanges.clear();
469468
}
470469
// If the scope is the CU, do not update the ranges set.
471470
if (FoundLowPC && FoundHighPC && !IsCompileUnit) {
472471
addSectionRange(SectionIndex, CurrentScope, CurrentLowPC,
473472
CurrentHighPC > CurrentLowPC
474-
? CurrentHighPC - 1
475-
: CurrentHighPC); // Make hi-pc exclusive
473+
? CurrentHighPC - 1 // Make hi-pc exclusive
474+
: CurrentHighPC);
476475
}
477476
}
478477
}

0 commit comments

Comments
 (0)