Skip to content

Commit 34bcac1

Browse files
committed
DebuggerDisplay for LLVMModuleRef
1 parent 6591df2 commit 34bcac1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sources/LLVMSharp.Interop/Extensions/LLVMModuleRef.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
22

33
using System;
4+
using System.Diagnostics;
45
using System.Runtime.InteropServices;
56

67
namespace LLVMSharp.Interop;
78

9+
[DebuggerDisplay(nameof(LLVMModuleRef))] // ToString() will provide the actual content, which might be huge.
810
public unsafe partial struct LLVMModuleRef(IntPtr handle) : IDisposable, IEquatable<LLVMModuleRef>
911
{
1012
public IntPtr Handle = handle;

0 commit comments

Comments
 (0)