From 40cf40220cc18073dc47b149af2789847441a44b Mon Sep 17 00:00:00 2001 From: Mike Spertus Date: Sun, 30 Jun 2019 21:54:34 +0000 Subject: [PATCH] Clean up MSVC visualization of LLVM pointer types Create separate natvis ptr and int views for PointerIntPair. These are convenient in watch Windows and will be used by Clang visualizers to be checked in shortly Also, removed deref views as the MSVC na format has done the same thing natively since MSVC2013. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364723 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/LLVMVisualizers/llvm.natvis | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/utils/LLVMVisualizers/llvm.natvis b/utils/LLVMVisualizers/llvm.natvis index f4ed0787689..0000519ce05 100644 --- a/utils/LLVMVisualizers/llvm.natvis +++ b/utils/LLVMVisualizers/llvm.natvis @@ -76,37 +76,28 @@ For later versions of Visual Studio, no setup is required. + + {($T1)(Value & $T5::PointerBitMask)} + {($T3)((Value >> $T5::IntShift) & $T5::IntMask)} {$T5::IntMask}: {($T1)(Value & $T5::PointerBitMask)} [{($T3)((Value >> $T5::IntShift) & $T5::IntMask)}] ($T1)(Value & $T5::PointerBitMask) ($T3)((Value >> $T5::IntShift) & $T5::IntMask) - + - - {*($T4)(Val.Value & $T2::InfoTy::PointerBitMask)} - {($T4)(Val.Value & $T2::InfoTy::PointerBitMask)} - - {*($T5)(Val.Value & $T2::InfoTy::PointerBitMask)} - {($T5)(Val.Value & $T2::InfoTy::PointerBitMask)} - - {*($T6)(Val.Value & $T2::InfoTy::PointerBitMask)} - {($T6)(Val.Value & $T2::InfoTy::PointerBitMask)} - - {*($T7)(Val.Value & $T2::InfoTy::PointerBitMask)} - {($T7)(Val.Value & $T2::InfoTy::PointerBitMask)} -- 2.50.1