コード例 #1
0
ファイル: TargetData.cs プロジェクト: aaronrandolph/LLVM.NET
 public void Dispose(bool disposing)
 {
     if(m_bNeedsDisposing && m_handle != null)
     {
         Native.DisposeTargetData(m_handle);
         m_handle = null;
     }
 }
コード例 #2
0
ファイル: TargetData.cs プロジェクト: mcwchitos/CC
 public void Dispose(bool disposing)
 {
     if (m_bNeedsDisposing && m_handle != null)
     {
         Native.DisposeTargetData(m_handle);
         m_handle = null;
     }
 }
コード例 #3
0
ファイル: TargetData.cs プロジェクト: mcwchitos/CC
        public static TargetData Create(string triple)
        {
            LLVMTargetDataRef *handle = Native.CreateTargetData(triple);

            if (handle == null)
            {
                return(null);
            }

            return(new TargetData(handle, true));
        }
コード例 #4
0
ファイル: TargetData.cs プロジェクト: aaronrandolph/LLVM.NET
 public TargetData(LLVMTargetDataRef* handle, bool needsDisposing)
 {
     m_handle = handle;
     m_bNeedsDisposing = needsDisposing;
 }
コード例 #5
0
ファイル: TargetData.cs プロジェクト: mcwchitos/CC
 public TargetData(LLVMTargetDataRef *handle, bool needsDisposing)
 {
     m_handle          = handle;
     m_bNeedsDisposing = needsDisposing;
 }