r184861 - In tooling, reenable freeing of datastructures in codegen, just as we do for

Nick Lewycky nicholas at mxc.ca
Tue Jun 25 10:01:21 PDT 2013


Author: nicholas
Date: Tue Jun 25 12:01:21 2013
New Revision: 184861

URL: http://llvm.org/viewvc/llvm-project?rev=184861&view=rev
Log:
In tooling, reenable freeing of datastructures in codegen, just as we do for
the frontend. We don't want to respect the -disable-free flag here.

Modified:
    cfe/trunk/lib/Tooling/Tooling.cpp

Modified: cfe/trunk/lib/Tooling/Tooling.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/Tooling.cpp?rev=184861&r1=184860&r2=184861&view=diff
==============================================================================
--- cfe/trunk/lib/Tooling/Tooling.cpp (original)
+++ cfe/trunk/lib/Tooling/Tooling.cpp Tue Jun 25 12:01:21 2013
@@ -95,6 +95,7 @@ static clang::CompilerInvocation *newInv
       *Invocation, CC1Args.data() + 1, CC1Args.data() + CC1Args.size(),
       *Diagnostics);
   Invocation->getFrontendOpts().DisableFree = false;
+  Invocation->getCodeGenOpts().DisableFree = false;
   return Invocation;
 }
 





More information about the cfe-commits mailing list