[llvm-commits] [llvm] r59362 - /llvm/trunk/include/llvm/ADT/ImmutableList.h

Ted Kremenek kremenek at apple.com
Sat Nov 15 19:23:07 PST 2008


Looks good.

On Nov 15, 2008, at 1:26 AM, Zhongxing Xu wrote:

> Author: zhongxingxu
> Date: Sat Nov 15 03:26:02 2008
> New Revision: 59362
>
> URL: http://llvm.org/viewvc/llvm-project?rev=59362&view=rev
> Log:
> Add Profile method to ImmutableList.
>
> Modified:
>    llvm/trunk/include/llvm/ADT/ImmutableList.h
>
> Modified: llvm/trunk/include/llvm/ADT/ImmutableList.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ImmutableList.h?rev=59362&r1=59361&r2=59362&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/include/llvm/ADT/ImmutableList.h (original)
> +++ llvm/trunk/include/llvm/ADT/ImmutableList.h Sat Nov 15 03:26:02  
> 2008
> @@ -123,6 +123,10 @@
>   ImmutableList getTail() {
>     return X ? X->getTail() : 0;
>   }
> +
> +  void Profile(FoldingSetNodeID& ID) const {
> +    ID.AddPointer(X);
> +  }
> };
>
> template <typename T>
>
>
> _______________________________________________
> 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