[lld] 49f646a - [ELF] Change EhInputSection::pieces to SmallVector
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 27 21:34:43 PST 2021
Author: Fangrui Song
Date: 2021-12-27T21:34:38-08:00
New Revision: 49f646a9ede6301fd47a4b2ed19d0630fa90c7b4
URL: https://github.com/llvm/llvm-project/commit/49f646a9ede6301fd47a4b2ed19d0630fa90c7b4
DIFF: https://github.com/llvm/llvm-project/commit/49f646a9ede6301fd47a4b2ed19d0630fa90c7b4.diff
LOG: [ELF] Change EhInputSection::pieces to SmallVector
The decreased size does not matter that much as one file contributes at most one EhInputSection.
Added:
Modified:
lld/ELF/InputSection.h
Removed:
################################################################################
diff --git a/lld/ELF/InputSection.h b/lld/ELF/InputSection.h
index 016f2523b4a85..87b748fdf99e0 100644
--- a/lld/ELF/InputSection.h
+++ b/lld/ELF/InputSection.h
@@ -324,7 +324,7 @@ class EhInputSection : public InputSectionBase {
// Splittable sections are handled as a sequence of data
// rather than a single large blob of data.
- std::vector<EhSectionPiece> pieces;
+ SmallVector<EhSectionPiece, 0> pieces;
SyntheticSection *getParent() const;
};
More information about the llvm-commits
mailing list