|
LLVM
3.7.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::object::ObjectFile::createObjectFile(), llvm::raw_ostream::flush(), llvm_unreachable, and llvm::legacy::PassManager::run().
1.8.6