[PATCH] D23721: [gold/ThinLTO] Restore ThinLTO file management in gold plugin

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 23 11:17:24 PDT 2016


pcc added a comment.

I agree with Mehdi here.

One possibility would be to change InputFile to store a MemoryBuffer instead of a MemoryBufferRef. Clients that require special handling of freed InputFiles can supply a custom derived class of MemoryBuffer with an overridden destructor.


Repository:
  rL LLVM

https://reviews.llvm.org/D23721





More information about the llvm-commits mailing list