forked from OSchip/llvm-project
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:
parent
bb33007b25
commit
5a7ca96e2d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue