Store live offsets as uint32_t.

We don't support input merge sections larger than 4gb, so these can be
uint32_t.

llvm-svn: 328684
This commit is contained in:
Rafael Espindola 2018-03-28 02:32:31 +00:00
parent bb33007b25
commit 5a7ca96e2d
2 changed files with 2 additions and 2 deletions

View File

@ -921,7 +921,7 @@ void MergeInputSection::splitIntoPieces() {
splitNonStrings(Data, Entsize);
if (Config->GcSections && (Flags & SHF_ALLOC))
for (uint64_t Off : LiveOffsets)
for (uint32_t Off : LiveOffsets)
getSectionPiece(Off)->Live = true;
}

View File

@ -262,7 +262,7 @@ private:
mutable llvm::DenseMap<uint32_t, uint32_t> OffsetMap;
mutable llvm::once_flag InitOffsetMap;
llvm::DenseSet<uint64_t> LiveOffsets;
llvm::DenseSet<uint32_t> LiveOffsets;
};
struct EhSectionPiece {