From 0754d77d6ad98476da03f88c8ca54ce7149eeb3c Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Sat, 21 Jul 2018 15:38:47 +0000 Subject: [PATCH] Fix the MSVC Visualizers for SmallVector classes. Recent changes to the internal structure of SmallVector<> broke all of the MSVC visualizers. This fixes them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337644 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/LLVMVisualizers/llvm.natvis | 42 +++++++++++++++---------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/utils/LLVMVisualizers/llvm.natvis b/utils/LLVMVisualizers/llvm.natvis index e0812a0286e..963c94f7e11 100644 --- a/utils/LLVMVisualizers/llvm.natvis +++ b/utils/LLVMVisualizers/llvm.natvis @@ -10,36 +10,36 @@ For later versions of Visual Studio, no setup is required. - empty - {{ size={($T1*)EndX - ($T1*)BeginX} }} + empty + {{ size={Size} }} - ($T1*)EndX - ($T1*)BeginX - ($T1*)CapacityX - ($T1*)BeginX + Size + Capacity - ($T1*)EndX - ($T1*)BeginX + Size ($T1*)BeginX - + {(($T1*)BeginX)[0]}{*this,view(elt1)} - + , {(($T1*)BeginX)[1]}{*this,view(elt2)} - + , {(($T1*)BeginX)[2]}{*this,view(elt3)} - + , {(($T1*)BeginX)[2]}{*this,view(elt4)} - - , /* {(($T1*)EndX - ($T1*)BeginX) - 4} more*/ - empty - {{{*this,view(elt0)}}} + + , /* {Size - 4} more*/ + empty + {{{*this,view(elt0)}}} - ($T1*)EndX - ($T1*)BeginX - ($T1*)CapacityX - ($T1*)BeginX + Size + Capacity - ($T1*)EndX - ($T1*)BeginX + Size ($T1*)BeginX @@ -56,13 +56,13 @@ For later versions of Visual Studio, no setup is required. - {(const char*)BeginX,[(char*)EndX - (char*)BeginX] na} - (const char*)BeginX,[(char*)EndX - (char*)BeginX] + {(const char*)BeginX,[Size] na} + (const char*)BeginX,[Size] - (char*)EndX - (char*)BeginX - (char*)CapacityX - (char*)BeginX + Size + Capacity - (char*)EndX - (char*)BeginX + Size (char*)BeginX -- 2.50.1