aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectScript.cpp
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2022-06-23 10:22:05 -0400
committerJoseph Huber <jhuber6@vols.utk.edu>2022-06-23 10:35:29 -0400
commit4e2a0092b97e967f823578295ebdba8f057a77d1 (patch)
tree35d8b718396d086077457316c5a12956547b40aa /lldb/source/Commands/CommandObjectScript.cpp
parent8b6f69a4da5baaf3748798a84dd16a2481b7ca7f (diff)
downloadllvm-4e2a0092b97e967f823578295ebdba8f057a77d1.zip
llvm-4e2a0092b97e967f823578295ebdba8f057a77d1.tar.gz
llvm-4e2a0092b97e967f823578295ebdba8f057a77d1.tar.bz2
[Binary] Reserve the correct size for the OffloadBinary
Summary: When writing the offload binary, we use a SmallVector. We already know the size that we expect the buffer to take up so we should reserve all that memory up-front to improve performance. Also this patch adds some extra sanity checks for the binary format for safety.
Diffstat (limited to 'lldb/source/Commands/CommandObjectScript.cpp')
0 files changed, 0 insertions, 0 deletions