From: Mike Spertus Date: Fri, 11 Mar 2016 18:26:47 +0000 (+0000) Subject: Type correct Visual Studio native visualization for PointerUnions X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bced68c760631a6e08c34ebdc44e021d0e34171e;p=platform%2Fupstream%2Fllvm.git Type correct Visual Studio native visualization for PointerUnions Visualize pointer unions by their actual type rather than as void *. llvm-svn: 263270 --- diff --git a/llvm/utils/llvm.natvis b/llvm/utils/llvm.natvis index 6c410a4..5a528bb 100644 --- a/llvm/utils/llvm.natvis +++ b/llvm/utils/llvm.natvis @@ -54,8 +54,8 @@ or create a symbolic link so it updates automatically. - {"$T1", s8b} {(void*)(Val.Value & Val.PointerBitMask)} - {"$T2", s8b} {(void*)(Val.Value & Val.PointerBitMask)} + {"$T1", s8b}: {($T1)(Val.Value & Val.PointerBitMask)} + {"$T2", s8b}: {($T2)(Val.Value & Val.PointerBitMask)} ($T1)(Val.Value & Val.PointerBitMask) ($T2)(Val.Value & Val.PointerBitMask) @@ -63,9 +63,9 @@ or create a symbolic link so it updates automatically. - {"$T1", s8b} {(void*)((Val.Val.Value >> 2) << 2)} - {"$T2", s8b} {(void*)((Val.Val.Value >> 2) << 2)} - {"$T3", s8b} {(void*)((Val.Val.Value >> 2) << 2)} + {"$T1", s8b}: {($T1)((Val.Val.Value >> 2) << 2)} + {"$T2", s8b}: {($T2)((Val.Val.Value >> 2) << 2)} + {"$T3", s8b}: {($T3)((Val.Val.Value >> 2) << 2)} ($T1)((Val.Val.Value >> 2) << 2) ($T2)((Val.Val.Value >> 2) << 2) @@ -74,10 +74,10 @@ or create a symbolic link so it updates automatically. - {"$T1", s8b} {(void*)((Val.Val.Value >> 2) << 2)} - {"$T2", s8b} {(void*)((Val.Val.Value >> 2) << 2)} - {"$T3", s8b} {(void*)((Val.Val.Value >> 2) << 2)} - {"$T4", s8b} {(void*)((Val.Val.Value >> 2) << 2)} + {"$T1", s8b}: {($T1)((Val.Val.Value >> 2) << 2)} + {"$T2", s8b}: {($T2)((Val.Val.Value >> 2) << 2)} + {"$T3", s8b}: {($T3)((Val.Val.Value >> 2) << 2)} + {"$T4", s8b}: {($T4)((Val.Val.Value >> 2) << 2)} ($T1)((Val.Val.Value >> 2) << 2) ($T2)((Val.Val.Value >> 2) << 2)