[RuntimeDyld] Teach MachOObjectImage to deregister itself with the debugger upon

destruction the same way ELFObjectImage does.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211815 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Lang Hames 2014-06-26 23:05:44 +00:00
parent 8dd8d5c2b2
commit 9bd578efea

View File

@ -65,7 +65,10 @@ public:
initOldAddress();
}
virtual ~MachOObjectImage() {}
virtual ~MachOObjectImage() {
if (Registered)
deregisterWithDebugger();
}
// Subclasses can override these methods to update the image with loaded
// addresses for sections and common symbols