[PATCH] D45835: Add new driver mode for dumping compiler options
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun May 13 14:10:32 PDT 2018
aaron.ballman added inline comments.
================
Comment at: lib/Frontend/FrontendActions.cpp:779
+ {
+ std::string Str;
+#define FEATURE(Name, Predicate) \
----------------
lebedev.ri wrote:
> This is likely to do an allocation for each feature.
> Maybe consider `llvm::SmallString<64>`
64 bytes seemed a bit tight, so I went with 128 instead. Likely still a bit too small, but shouldn't be too bad.
https://reviews.llvm.org/D45835
More information about the cfe-commits
mailing list