1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

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

destruction the same way ELFObjectImage does.

llvm-svn: 211815
This commit is contained in:
Lang Hames 2014-06-26 23:05:44 +00:00
parent 97022b0c1f
commit ef8f18f9e4

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