aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2023-09-07 15:49:11 -0700
committerGitHub <noreply@github.com>2023-09-07 15:49:11 -0700
commit9208065a7b51958b44ea012259097e742825b7f4 (patch)
tree704a5cd62f20977508f6474f020ca171f7293cfe /flang/lib/Frontend/CompilerInvocation.cpp
parentea9e47d534fb396b5792bef26d669dc0c2618af0 (diff)
downloadllvm-9208065a7b51958b44ea012259097e742825b7f4.zip
llvm-9208065a7b51958b44ea012259097e742825b7f4.tar.gz
llvm-9208065a7b51958b44ea012259097e742825b7f4.tar.bz2
[clang][deps] Store common, partially-formed invocation (#65677)
We create one `CompilerInvocation` for each modular dependency we discover. This means we create a lot of copies, even though most of the invocation is the same between modules. This patch makes use of the copy-on-write flavor of `CompilerInvocation` to share the common parts, reducing memory usage and speeding up the scan.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions