mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
Visualizer for APInt and remove obsolete visualizer
Visualizer for the simple case of APInt (uints < 2^64) as will be required for Clang ConstantArrayType visualizer. Also, removed obsolete VS2013 SmallVectorVisualizer as VS2013 is no longer supported. llvm-svn: 362860
This commit is contained in:
parent
d06a69ea1d
commit
c3996c8313
@ -8,20 +8,6 @@ For Visual Studio 2013 only, put this file into
|
||||
For later versions of Visual Studio, no setup is required.
|
||||
-->
|
||||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
||||
<!-- VS2013 -->
|
||||
<Type Name="llvm::SmallVectorImpl<*>" Priority="MediumLow">
|
||||
<DisplayString Condition="Size == 0">empty</DisplayString>
|
||||
<DisplayString Condition="Size != 0">{{ size={Size} }}</DisplayString>
|
||||
<Expand>
|
||||
<Item Name="[size]">Size</Item>
|
||||
<Item Name="[capacity]">Capacity</Item>
|
||||
<ArrayItems>
|
||||
<Size>Size</Size>
|
||||
<ValuePointer>($T1*)BeginX</ValuePointer>
|
||||
</ArrayItems>
|
||||
</Expand>
|
||||
</Type>
|
||||
<!-- VS2015 and up -->
|
||||
<Type Name="llvm::SmallVectorImpl<*>">
|
||||
<DisplayString IncludeView ="elt0" Condition="Size == 0"></DisplayString>
|
||||
<DisplayString IncludeView ="elt0">{(($T1*)BeginX)[0]}{*this,view(elt1)}</DisplayString>
|
||||
@ -45,6 +31,11 @@ For later versions of Visual Studio, no setup is required.
|
||||
</ArrayItems>
|
||||
</Expand>
|
||||
</Type>
|
||||
<Type Name="llvm::APInt">
|
||||
<!-- For now, only handle up to 64-bit unsigned ints -->
|
||||
<DisplayString Condition="BitWidth <= 64">{U.VAL}</DisplayString>
|
||||
<DisplayString>Cannot visualize APInts longer than 64 bits</DisplayString>
|
||||
</Type>
|
||||
<Type Name="llvm::ArrayRef<*>">
|
||||
<DisplayString Condition="Length == 0">empty</DisplayString>
|
||||
<DisplayString Condition="Length != 0">{{ size={Length} }}</DisplayString>
|
||||
|
Loading…
Reference in New Issue
Block a user