For --gc-sections, SmallVector<InputSection *, 256> -> SmallVector<InputSection *, 0> because the code bloat (1296 bytes) is not worthwhile (the saved reallocation is negligible).
For OutputSection::compressedData, N=1 is useless (for a compressed .debug_*, the size is always larger than 1).
unsigned partition;
// A list of sections to visit.
- SmallVector<InputSection *, 256> queue;
+ SmallVector<InputSection *, 0> queue;
// There are normally few input sections whose names are valid C
// identifiers, so we just store a std::vector instead of a multimap.
private:
// Used for implementation of --compress-debug-sections option.
std::vector<uint8_t> zDebugHeader;
- llvm::SmallVector<char, 1> compressedData;
+ llvm::SmallVector<char, 0> compressedData;
std::array<uint8_t, 4> getFiller();
};