llvm-hs-7.0.1: General purpose LLVM bindings

Safe HaskellNone
LanguageHaskell2010

LLVM.Internal.ObjectFile

Synopsis

Documentation

newtype ObjectFile Source #

Constructors

ObjectFile (Ptr ObjectFile) 

createObjectFile :: 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.