[llvm-commits] [llvm-gcc-4.2] r60714 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp

Duncan Sands baldrick at free.fr
Mon Dec 8 13:05:13 PST 2008


Hi Devang,

> There is no reason to ignore type variants.

I think Evan added this because otherwise we were getting
vast amounts of fairly useless debug info.

Ciao,

Duncan.

> Modified:
>     llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
> 
> Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=60714&r1=60713&r2=60714&view=diff
> 
> ==============================================================================
> --- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
> +++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Mon Dec  8 14:55:51 2008
> @@ -445,9 +445,6 @@
>                "Not a type.");
>    if (type == NULL_TREE || type == error_mark_node) return NULL;
>  
> -  // Ignore variants such as const, volatile, or restrict.
> -  type = TYPE_MAIN_VARIANT(type);
> -
>    // Should only be void if a pointer/reference/return type.  Returning NULL
>    // allows the caller to produce a non-derived type.
>    if (TREE_CODE(type) == VOID_TYPE) return NULL;
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> 



More information about the llvm-commits mailing list