diff options
author | Mike Spertus <mike@spertus.com> | 2016-03-18 20:06:16 +0000 |
---|---|---|
committer | Mike Spertus <mike@spertus.com> | 2016-03-18 20:06:16 +0000 |
commit | 024f4c17d15ae87c5d453c2f65dfccdbfe410908 (patch) | |
tree | 099b2fb46d055fa5824938db6dc503caee46fe3c | |
parent | 6d8a876159883193d24af39bfa3a52d4011a5355 (diff) | |
download | bcm5719-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.natvis | 4 |
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<*,*,*,*>">
- <DisplayString>{(void*)(Value & PointerBitMask)} [{($T3)((Value >> IntShift) & IntMask)}]</DisplayString>
+ <DisplayString>{IntMask}: {($T1)(Value & PointerBitMask)} [{($T3)((Value >> IntShift) & IntMask)}]</DisplayString>
<Expand>
- <Item Name="[ptr]">($T1*)(Value & PointerBitMask)</Item>
+ <Item Name="[ptr]">($T1)(Value & PointerBitMask)</Item>
<Item Name="[int]">($T3)((Value >> IntShift) & IntMask)</Item>
</Expand>
</Type>
|