| 398 | } |
| 399 | |
| 400 | Status LlvmCodeGen::LinkModuleFromHdfs(const string& hdfs_location, const time_t mtime) { |
| 401 | if (linked_modules_.find(hdfs_location) != linked_modules_.end()) return Status::OK(); |
| 402 | LibCacheEntryHandle handle; |
| 403 | string local_path; |
| 404 | RETURN_IF_ERROR(LibCache::instance()->GetLocalPath( |
| 405 | hdfs_location, LibCache::TYPE_IR, mtime, &handle, &local_path)); |
| 406 | RETURN_IF_ERROR(LinkModuleFromLocalFs(local_path)); |
| 407 | linked_modules_.insert(hdfs_location); |
| 408 | return Status::OK(); |
| 409 | } |
| 410 | |
| 411 | void LlvmCodeGen::StripGlobalCtorsDtors(llvm::Module* module) { |
| 412 | llvm::GlobalVariable* constructors = module->getGlobalVariable("llvm.global_ctors"); |
nothing calls this directly
no test coverage detected