aboutsummaryrefslogtreecommitdiff
path: root/src/zig_llvm.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-12-28 23:16:31 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-01-01 19:49:08 -0700
commite22102dfc6356a16e83341d0cd0526762c696ad6 (patch)
tree73751b59c4c93c30dced895f5bb9f4a84f5fcd8a /src/zig_llvm.cpp
parentc2cc1b37928034cdcd49d07819fbb4f87683cf87 (diff)
downloadzig-e22102dfc6356a16e83341d0cd0526762c696ad6.tar.gz
zig-e22102dfc6356a16e83341d0cd0526762c696ad6.zip
Compilation: make create() take an arena allocator
Instead of making its own inside create. 10 out of 10 calls to create() had already an arena in scope, so this commit means that 10 instances of Compilation now reuse an existing arena with the same lifetime rather than creating a redundant one. In other words, this very slightly optimizes initialization of the frontend in terms of memory allocation.
Diffstat (limited to 'src/zig_llvm.cpp')
0 files changed, 0 insertions, 0 deletions