From 3d5a6dd6edf24deb1c44841c1480400c6fed3108 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. llvm-svn: 337644 --- llvm/utils/LLVMVisualizers/llvm.natvis | 42 +++++++++++++------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/llvm/utils/LLVMVisualizers/llvm.natvis b/llvm/utils/LLVMVisualizers/llvm.natvis index e0812a0286e0..963c94f7e116 100644 --- a/llvm/utils/LLVMVisualizers/llvm.natvis +++ b/llvm/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