Presently EmitAssemblyHelper::EmitAssembly unconditionally leaks an
llvm::TargetMachine. This is quite unhelpful when using clang as a library.
The attached patch adds a codegen option for whether we permit leaking it,
and ties that to the same -disable-free flag that the frontend uses. Please
review!

Nick

Attachment: x.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to