Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | |||||
std::unique_ptr<MemoryBuffer> MCJIT::emitObject(Module *M) { | std::unique_ptr<MemoryBuffer> MCJIT::emitObject(Module *M) { | ||||
assert(M && "Can not emit a null module"); | assert(M && "Can not emit a null module"); | ||||
std::lock_guard<sys::Mutex> locked(lock); | std::lock_guard<sys::Mutex> locked(lock); | ||||
// Materialize all globals in the module if they have not been | // Materialize all globals in the module if they have not been | ||||
// materialized already. | // materialized already. | ||||
cantFail(M->materializeAll()); | llvm_cantFail(M->materializeAll()); | ||||
// This must be a module which has already been added but not loaded to this | // This must be a module which has already been added but not loaded to this | ||||
// MCJIT instance, since these conditions are tested by our caller, | // MCJIT instance, since these conditions are tested by our caller, | ||||
// generateCodeForModule. | // generateCodeForModule. | ||||
legacy::PassManager PM; | legacy::PassManager PM; | ||||
// The RuntimeDyld will take ownership of this shortly | // The RuntimeDyld will take ownership of this shortly | ||||
▲ Show 20 Lines • Show All 521 Lines • Show Last 20 Lines |