[llvm] r350748 - Fix visualization of intrusive reference counted objects in MSVC.
Aaron Ballman via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 9 10:59:56 PST 2019
Author: aaronballman
Date: Wed Jan 9 10:59:56 2019
New Revision: 350748
URL: http://llvm.org/viewvc/llvm-project?rev=350748&view=rev
Log:
Fix visualization of intrusive reference counted objects in MSVC.
Modified:
llvm/trunk/utils/LLVMVisualizers/llvm.natvis
Modified: llvm/trunk/utils/LLVMVisualizers/llvm.natvis
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/LLVMVisualizers/llvm.natvis?rev=350748&r1=350747&r2=350748&view=diff
==============================================================================
--- llvm/trunk/utils/LLVMVisualizers/llvm.natvis (original)
+++ llvm/trunk/utils/LLVMVisualizers/llvm.natvis Wed Jan 9 10:59:56 2019
@@ -191,10 +191,10 @@ For later versions of Visual Studio, no
<Type Name="llvm::IntrusiveRefCntPtr<*>">
<DisplayString Condition="Obj == 0">empty</DisplayString>
- <DisplayString Condition="(Obj != 0) && (Obj->ref_cnt == 1)">RefPtr [1 ref] {*Obj}</DisplayString>
- <DisplayString Condition="(Obj != 0) && (Obj->ref_cnt != 1)">RefPtr [{Obj->ref_cnt} refs] {*Obj}</DisplayString>
+ <DisplayString Condition="(Obj != 0) && (Obj->RefCount == 1)">RefPtr [1 ref] {*Obj}</DisplayString>
+ <DisplayString Condition="(Obj != 0) && (Obj->RefCount != 1)">RefPtr [{Obj->RefCount} refs] {*Obj}</DisplayString>
<Expand>
- <Item Condition="Obj != 0" Name="[refs]">Obj->ref_cnt</Item>
+ <Item Condition="Obj != 0" Name="[refs]">Obj->RefCount</Item>
<ExpandedItem Condition="Obj != 0">Obj</ExpandedItem>
</Expand>
</Type>
More information about the llvm-commits
mailing list