]> granicus.if.org Git - llvm/commitdiff
Fix visualization of intrusive reference counted objects in MSVC.
authorAaron Ballman <aaron@aaronballman.com>
Wed, 9 Jan 2019 18:59:56 +0000 (18:59 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 9 Jan 2019 18:59:56 +0000 (18:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350748 91177308-0d34-0410-b5e6-96231b3b80d8

utils/LLVMVisualizers/llvm.natvis

index 89c99f41325981ea57014177ac7be7767b2c86df..42d3a122bece5945d1428b02b18ad9f3d5815943 100644 (file)
@@ -191,10 +191,10 @@ For later versions of Visual Studio, no setup is required.
 \r
   <Type Name="llvm::IntrusiveRefCntPtr&lt;*&gt;">\r
     <DisplayString Condition="Obj == 0">empty</DisplayString>\r
-    <DisplayString Condition="(Obj != 0) &amp;&amp; (Obj-&gt;ref_cnt == 1)">RefPtr [1 ref] {*Obj}</DisplayString>\r
-    <DisplayString Condition="(Obj != 0) &amp;&amp; (Obj-&gt;ref_cnt != 1)">RefPtr [{Obj-&gt;ref_cnt} refs] {*Obj}</DisplayString>\r
+    <DisplayString Condition="(Obj != 0) &amp;&amp; (Obj-&gt;RefCount == 1)">RefPtr [1 ref] {*Obj}</DisplayString>\r
+    <DisplayString Condition="(Obj != 0) &amp;&amp; (Obj-&gt;RefCount != 1)">RefPtr [{Obj-&gt;RefCount} refs] {*Obj}</DisplayString>\r
     <Expand>\r
-      <Item Condition="Obj != 0" Name="[refs]">Obj-&gt;ref_cnt</Item>\r
+      <Item Condition="Obj != 0" Name="[refs]">Obj-&gt;RefCount</Item>\r
       <ExpandedItem Condition="Obj != 0">Obj</ExpandedItem>\r
     </Expand>\r
   </Type>\r