Skip to content

Commit

Permalink
Fix bug with exponentially long build times
Browse files Browse the repository at this point in the history
  • Loading branch information
rastogishubham committed Oct 11, 2022
1 parent 8c46740 commit 5b62745
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion llvm/include/llvm/MC/CAS/MCCASObjectV1.h
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ class DebugInfoSectionRef : public SpecificRef<DebugInfoSectionRef> {
}
Expected<uint64_t>
materialize(MCCASReader &Reader, ArrayRef<char> AbbrevSectionContents,
DenseMap<cas::ObjectRef, unsigned> MapOfStringOffsets,
DenseMap<cas::ObjectRef, unsigned> &MapOfStringOffsets,
raw_ostream *Stream = nullptr) const;

private:
Expand Down
4 changes: 2 additions & 2 deletions llvm/lib/MC/MCCASObjectV1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ static Expected<uint64_t> getFormSize(dwarf::Form FormVal, dwarf::FormParams FP,
static Error
materializeCUDie(DWARFCompileUnit &DCU, MutableArrayRef<char> SectionContents,
StringRef CUData, ArrayRef<char> DistinctDataArrayRef,
DenseMap<cas::ObjectRef, unsigned> MapOfStringOffsets,
DenseMap<cas::ObjectRef, unsigned> &MapOfStringOffsets,
ArrayRef<cas::ObjectRef> DebugStringRefsVec,
uint64_t &CUOffset, uint64_t &DistinctDataOffset,
uint64_t &SectionOffset, unsigned &StrpCount,
Expand Down Expand Up @@ -1064,7 +1064,7 @@ materializeCUDie(DWARFCompileUnit &DCU, MutableArrayRef<char> SectionContents,

Expected<uint64_t> DebugInfoSectionRef::materialize(
MCCASReader &Reader, ArrayRef<char> AbbrevSectionContents,
DenseMap<cas::ObjectRef, unsigned> MapOfStringOffsets,
DenseMap<cas::ObjectRef, unsigned> &MapOfStringOffsets,
raw_ostream *Stream) const {
// Start a new section for relocations.
Reader.Relocations.emplace_back();
Expand Down

0 comments on commit 5b62745

Please sign in to comment.