summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Spertus <mike@spertus.com>2016-03-18 20:06:16 +0000
committerMike Spertus <mike@spertus.com>2016-03-18 20:06:16 +0000
commit024f4c17d15ae87c5d453c2f65dfccdbfe410908 (patch)
tree099b2fb46d055fa5824938db6dc503caee46fe3c
parent6d8a876159883193d24af39bfa3a52d4011a5355 (diff)
downloadbcm5719-llvm-024f4c17d15ae87c5d453c2f65dfccdbfe410908.tar.gz
bcm5719-llvm-024f4c17d15ae87c5d453c2f65dfccdbfe410908.zip
Typesafe visualization of PointerIntPairs in Visual Studio
In the <DisplayString> of PointerIntPair , I cast the pointer to the actual type, so VS can leverage it while visualizing, not unlike the recent change to PointerUnion visualization. In the expansion, the current code is casting to the incorrect type (wrong number of stars), so I fixed that as well. llvm-svn: 263821
-rw-r--r--llvm/utils/llvm.natvis4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/llvm.natvis b/llvm/utils/llvm.natvis
index 5a528bbf48e..275800d3a45 100644
--- a/llvm/utils/llvm.natvis
+++ b/llvm/utils/llvm.natvis
@@ -46,9 +46,9 @@ or create a symbolic link so it updates automatically.
</Type>
<Type Name="llvm::PointerIntPair&lt;*,*,*,*&gt;">
- <DisplayString>{(void*)(Value &amp; PointerBitMask)} [{($T3)((Value &gt;&gt; IntShift) &amp; IntMask)}]</DisplayString>
+ <DisplayString>{IntMask}: {($T1)(Value &amp; PointerBitMask)} [{($T3)((Value &gt;&gt; IntShift) &amp; IntMask)}]</DisplayString>
<Expand>
- <Item Name="[ptr]">($T1*)(Value &amp; PointerBitMask)</Item>
+ <Item Name="[ptr]">($T1)(Value &amp; PointerBitMask)</Item>
<Item Name="[int]">($T3)((Value &gt;&gt; IntShift) &amp; IntMask)</Item>
</Expand>
</Type>
OpenPOWER on IntegriCloud