Home | History | Annotate | Download | only in gold

Lines Matching defs:View

463     const void *view;
464 if (get_view(file->handle, &view) != LDPS_OK) {
465 message(LDPL_ERROR, "Failed to get a view of %s", file->name);
469 MemoryBufferRef(StringRef((const char *)view, file->filesize), "");
645 /// Helper to get a file's symbols and a view into it via gold callbacks.
654 const void *View;
655 if (get_view(F.handle, &View) != LDPS_OK)
656 message(LDPL_FATAL, "Failed to get a view of file");
658 return View;
663 const void *View = getSymbolsAndView(F);
664 if (!View)
667 MemoryBufferRef BufferRef(StringRef((const char *)View, F.filesize), F.name);
690 getModuleForFile(LLVMContext &Context, claimed_file &F, const void *View,
694 MemoryBufferRef BufferRef(StringRef((const char *)View, F.filesize), Name);
877 /// Map from a module name to the corresponding buffer holding a view of the
1138 /// Links the module in \p View from file \p F into the combined module
1141 const void *View, StringRef Name,
1146 std::unique_ptr<Module> M = getModuleForFile(Context, F, View, Name, ApiFile,
1180 static void thinLTOBackendTask(claimed_file &F, const void *View,
1198 linkInModule(Context, L, F, View, Name, ApiFile, Dummy, true);
1229 const void *View = getSymbolsAndView(F);
1230 if (!View)
1255 ThinLTOThreadPool.async(thinLTOBackendTask, std::ref(F), View, F.name,
1307 // Map from a module name to the corresponding buffer holding a view of the
1329 const void *View = getSymbolsAndView(F);
1330 if (!View)
1333 MemoryBufferRef ModuleBuffer(StringRef((const char *)View, F.filesize),
1488 const void *View = getSymbolsAndView(F);
1489 if (!View)
1491 linkInModule(Context, L, F, View, F.name, ApiFile, Internalize);