[llvm-commits] [llvm] r63834 - /llvm/trunk/tools/gold/gold-plugin.cpp
Nick Lewycky
nicholas at mxc.ca
Thu Feb 5 18:01:57 PST 2009
Rafael Espindola wrote:
> 2009/2/5 Nick Lewycky <nicholas at mxc.ca>:
>> Author: nicholas
>> Date: Wed Feb 4 23:36:01 2009
>> New Revision: 63834
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=63834&view=rev
>> Log:
>> It's not obvious, but lto_module_create_from_memory doesn't need to use the
>> buffer after it creates the Module. Thus, we don't need to store this pointer
>> in claimed_file.
>
> Don't you need to free it?
Yes I do. Thanks!
Nick
>> lto_codegen_dispose(cg);
>> - for (std::list<claimed_file>::iterator I = Modules.begin(),
>> - E = Modules.end(); I != E; ++I) {
>> - free(I->buf);
>> - }
>
> Cheers,
More information about the llvm-commits
mailing list