Also, fix checking of first line in ::parse. We can't use the
::getLines helper here since that already does comment stripping
internally.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lld/wasm/InputFiles.cpp | ||
---|---|---|
696 | I think the SmallVector docs (https://llvm.org/doxygen/classllvm_1_1SmallVector.html#details) recommend leaving out the 2nd template parameter if we don't have a particular best choice for it. 0 seems too small since we know there will be at least a few lines (or maybe just use std::vector since it seems likely there will be heap allocation anyway?) |
I think the SmallVector docs (https://llvm.org/doxygen/classllvm_1_1SmallVector.html#details) recommend leaving out the 2nd template parameter if we don't have a particular best choice for it. 0 seems too small since we know there will be at least a few lines (or maybe just use std::vector since it seems likely there will be heap allocation anyway?)