diff options
author | Joseph Huber <jhuber6@vols.utk.edu> | 2022-06-23 10:22:05 -0400 |
---|---|---|
committer | Joseph Huber <jhuber6@vols.utk.edu> | 2022-06-23 10:35:29 -0400 |
commit | 4e2a0092b97e967f823578295ebdba8f057a77d1 (patch) | |
tree | 35d8b718396d086077457316c5a12956547b40aa /lldb/source/Commands/CommandObjectScript.cpp | |
parent | 8b6f69a4da5baaf3748798a84dd16a2481b7ca7f (diff) | |
download | llvm-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