Пример #1
0
 public void Dispose(bool disposing)
 {
     if(m_bNeedsDisposing && m_handle != null)
     {
         Native.DisposeTargetData(m_handle);
         m_handle = null;
     }
 }
Пример #2
0
 public void Dispose(bool disposing)
 {
     if (m_bNeedsDisposing && m_handle != null)
     {
         Native.DisposeTargetData(m_handle);
         m_handle = null;
     }
 }
Пример #3
0
        public static TargetData Create(string triple)
        {
            LLVMTargetDataRef *handle = Native.CreateTargetData(triple);

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

            return(new TargetData(handle, true));
        }
Пример #4
0
 public TargetData(LLVMTargetDataRef* handle, bool needsDisposing)
 {
     m_handle = handle;
     m_bNeedsDisposing = needsDisposing;
 }
Пример #5
0
 public TargetData(LLVMTargetDataRef *handle, bool needsDisposing)
 {
     m_handle          = handle;
     m_bNeedsDisposing = needsDisposing;
 }