diff --git a/llvm-ffi.cabal b/llvm-ffi.cabal
--- a/llvm-ffi.cabal
+++ b/llvm-ffi.cabal
@@ -1,5 +1,5 @@
 Name:          llvm-ffi
-Version:       3.8.0
+Version:       3.8.1
 License:       BSD3
 License-File:  LICENSE
 Synopsis:      FFI bindings to the LLVM compiler toolkit.
@@ -74,7 +74,7 @@
   Location: http://hub.darcs.net/thielema/llvm-ffi/
 
 Source-Repository this
-  Tag:      3.8.0
+  Tag:      3.8.1
   Type:     darcs
   Location: http://hub.darcs.net/thielema/llvm-ffi/
 
diff --git a/src/LLVM/FFI/Target.hsc b/src/LLVM/FFI/Target.hsc
--- a/src/LLVM/FFI/Target.hsc
+++ b/src/LLVM/FFI/Target.hsc
@@ -9,7 +9,7 @@
 
 import qualified Foreign.C.Types as C
 import Foreign.C.String (CString)
-import Foreign.Ptr (Ptr)
+import Foreign.Ptr (Ptr, FunPtr)
 
 import Data.Typeable (Typeable)
 import Data.Word (Word32)
@@ -71,3 +71,5 @@
     :: TargetDataRef -> TypeRef -> CUInt -> IO CULLong
 foreign import ccall unsafe "LLVMDisposeTargetData" disposeTargetData
     :: TargetDataRef -> IO ()
+foreign import ccall unsafe "&LLVMDisposeTargetData" ptrDisposeTargetData
+    :: FunPtr (TargetDataRef -> IO ())
