MCPcopy Create free account
hub / github.com/apache/impala / LinkModuleFromHdfs

Method LinkModuleFromHdfs

be/src/codegen/llvm-codegen.cc:400–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400Status 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
411void LlvmCodeGen::StripGlobalCtorsDtors(llvm::Module* module) {
412 llvm::GlobalVariable* constructors = module->getGlobalVariable("llvm.global_ctors");

Callers

nothing calls this directly

Calls 5

OKFunction · 0.85
GetLocalPathMethod · 0.80
findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected