This patch abstracts away the string allocation and vector push-back from command line generation. Instead, all generated arguments are passed into ArgumentConsumer, which may choose to do the string allocation and vector push-back, or something else entirely.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Frontend/CompilerInvocation.cpp | ||
---|---|---|
4323 | Maybe not worth micro optimizing, but I noticed these two are allocating strings unnecessarily if we had an overload for things that can print to a raw_ostream. |
clang/lib/Frontend/CompilerInvocation.cpp | ||
---|---|---|
4323 | Interesting, there are a couple of other instances where this might help. I probably won't be spending time on this right now, but good to be aware. |
Maybe not worth micro optimizing, but I noticed these two are allocating strings unnecessarily if we had an overload for things that can print to a raw_ostream.