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

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

            return(new TargetData(handle, true));
        }
Example #4
0
 public TargetData(LLVMTargetDataRef* handle, bool needsDisposing)
 {
     m_handle = handle;
     m_bNeedsDisposing = needsDisposing;
 }
Example #5
0
 public TargetData(LLVMTargetDataRef *handle, bool needsDisposing)
 {
     m_handle          = handle;
     m_bNeedsDisposing = needsDisposing;
 }