We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e5921e4 + ab5871e commit 4f759ffCopy full SHA for 4f759ff
llvm/include/llvm/DWARFLinker/DWARFLinker.h
@@ -276,6 +276,12 @@ class DWARFFile {
276
277
/// Helpful address information(list of valid address ranges, relocations).
278
std::unique_ptr<AddressesMap> Addresses;
279
+
280
+ /// Unloads object file and corresponding AddressesMap and Dwarf Context.
281
+ void unload() {
282
+ Addresses.reset();
283
+ Dwarf.reset();
284
+ }
285
};
286
287
typedef std::map<std::string, std::string> swiftInterfacesMap;
@@ -524,7 +530,8 @@ class DWARFLinker {
524
530
/// the debug object.
525
531
void clear() {
526
532
CompileUnits.clear();
527
- File.Addresses->clear();
533
+ ModuleUnits.clear();
534
+ File.unload();
528
535
}
529
536
537
0 commit comments