mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 12:19:53 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263821 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b0c326b0a1
commit
67bf5dd452
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user