|
LLVM
4.0.0
|
Simple compile functor: Takes a single IR module and returns an ObjectFile. More...
#include <CompileUtils.h>
Public Member Functions | |
| SimpleCompiler (TargetMachine &TM) | |
| Construct a simple compile functor with the given target. More... | |
| object::OwningBinary < object::ObjectFile > | operator() (Module &M) const |
| Compile a Module to an ObjectFile. More... | |
Simple compile functor: Takes a single IR module and returns an ObjectFile.
Definition at line 28 of file CompileUtils.h.
|
inline |
Construct a simple compile functor with the given target.
Definition at line 31 of file CompileUtils.h.
|
inline |
Compile a Module to an ObjectFile.
Definition at line 34 of file CompileUtils.h.
References llvm::TargetMachine::addPassesToEmitMC(), llvm::consumeError(), llvm::object::ObjectFile::createObjectFile(), llvm_unreachable, llvm::legacy::PassManager::run(), and llvm::Expected< T >::takeError().
1.8.6