aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorShilei Tian <i@tianshilei.me>2021-12-28 16:10:49 -0500
committerShilei Tian <i@tianshilei.me>2021-12-28 16:11:03 -0500
commit357c8031ff29299ad4b823074ff7fdda23654cc8 (patch)
treee562088c017a4160de4a86ad8472b68dc0ec864d /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parentc5e8eb9783a680ba5f552d84c17d1b9122f5fe36 (diff)
downloadllvm-357c8031ff29299ad4b823074ff7fdda23654cc8.zip
llvm-357c8031ff29299ad4b823074ff7fdda23654cc8.tar.gz
llvm-357c8031ff29299ad4b823074ff7fdda23654cc8.tar.bz2
[OpenMP][Plugin] Minor adjustments to ResourcePool
This patch makes some minor adjustments to `ResourcePool`: - Don't initialize the resources if `Size` is 0 which can avoid assertion. - Add a new interface function `clear` to release all hold resources. - If initial size is 0, resize to 1 when the first request is encountered. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D116340
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions