draperlaboratory / fracture

an architecture-independent decompiler to LLVM IR
Other
385 stars 47 forks source link

Improve exception safety with smart pointers #2

Open elfring opened 10 years ago

elfring commented 10 years ago

Would you like to wrap any pointer data members with the template class "std::unique_ptr"?

Update candidate: MCDirector

rtc-draper commented 10 years ago

The LLVM-way is to use OwningPtr - http://llvm.org/docs/doxygen/html/classllvm_1_1OwningPtr.html

Pre-github we had done that with this class, but we removed it (for bad reasons, IIRC). Marked to be fixed.