[cfe-commits] r105516 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Anders Carlsson
andersca at mac.com
Fri Jun 4 18:19:49 PDT 2010
4 jun 2010 kl. 18.14 skrev Devang Patel:
> Author: dpatel
> Date: Fri Jun 4 20:14:40 2010
> New Revision: 105516
>
> URL: http://llvm.org/viewvc/llvm-project?rev=105516&view=rev
> Log:
> Preserve type info for local variables in optimized builds.
> llvm-gcc enabled this couple of weeks ago.
>
> Modified:
> cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
>
> Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=105516&r1=105515&r2=105516&view=diff
> ==============================================================================
> --- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Fri Jun 4 20:14:40 2010
> @@ -1477,7 +1477,7 @@
> llvm::DIVariable D =
> DebugFactory.CreateVariable(Tag, llvm::DIDescriptor(RegionStack.back()),
> VD->getName(),
> - Unit, Line, Ty);
> + Unit, Line, Ty, CGM.getLangOptions().Optimize);
What about non-optimized builds?
- Anders
More information about the cfe-commits
mailing list