| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
LLVM.Internal.ObjectFile
Synopsis
- newtype ObjectFile = ObjectFile (Ptr ObjectFile)
- disposeObjectFile :: ObjectFile -> IO ()
- createObjectFile :: HasCallStack => FilePath -> IO ObjectFile
- withObjectFile :: FilePath -> (ObjectFile -> IO a) -> IO a
Documentation
newtype ObjectFile Source #
Constructors
| ObjectFile (Ptr ObjectFile) |
disposeObjectFile :: ObjectFile -> IO () Source #
Dispose of an ObjectFile.
createObjectFile :: HasCallStack => FilePath -> IO ObjectFile Source #
Create a object file which can later be linked with the
LinkingLayer.
Note that the file at path should already be a compiled object file i.e a
`.o` file. This does *not* compile source files.
withObjectFile :: FilePath -> (ObjectFile -> IO a) -> IO a Source #
bracket-style wrapper for createObjectFile and disposeObjectFile.