aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
diff options
context:
space:
mode:
authorHyoun Kyu Cho <netforce@google.com>2022-05-24 03:04:40 +0000
committerDavid Blaikie <dblaikie@gmail.com>2022-05-24 03:23:24 +0000
commit6c12ae8163c77c508aa846958360aa96d1c2c00d (patch)
tree25a4d4f10ae7b15d94e3b38cef5eeaad18cde9e3 /llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
parentca81abcfd752e65c533825a5fadac19ce5a33578 (diff)
downloadllvm-6c12ae8163c77c508aa846958360aa96d1c2c00d.zip
llvm-6c12ae8163c77c508aa846958360aa96d1c2c00d.tar.gz
llvm-6c12ae8163c77c508aa846958360aa96d1c2c00d.tar.bz2
Exposes interface to free up caching data structure in DWARFDebugLine and DWARFUnit for memory management
This is minimum changes extracted from https://reviews.llvm.org/D78950. The old patch tried to add LRU eviction of caching data structure. Due to multiple layers of interfaces that users could be using, it was not clear where to put the functionality. While we work out on where to put that functionality, it'll be great to add this minimum interface change so that the user could implement their own memory management. More specifically: * Add a clearLineTable method for DWARFDebugLine which erases the given offset from the LineTableMap. * DWARFDebugContext adds the clearLineTableForUnit method that leverages clearLineTable to remove the object corresponding to a given compile unit, for memory management purposes. When it is referred to again, the line table object will be repopulated. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D90006
Diffstat (limited to 'llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp')
0 files changed, 0 insertions, 0 deletions