Lines Matching defs:ID
63 static std::string buildIDToString(BuildIDRef ID) {
64 return llvm::toHex(ID, /*LowerCase=*/true);
123 std::string getDebuginfodSourceUrlPath(BuildIDRef ID,
127 buildIDToString(ID), "source",
132 Expected<std::string> getCachedOrDownloadSource(BuildIDRef ID,
134 std::string UrlPath = getDebuginfodSourceUrlPath(ID, SourceFilePath);
138 std::string getDebuginfodExecutableUrlPath(BuildIDRef ID) {
141 buildIDToString(ID), "executable");
145 Expected<std::string> getCachedOrDownloadExecutable(BuildIDRef ID) {
146 std::string UrlPath = getDebuginfodExecutableUrlPath(ID);
150 std::string getDebuginfodDebuginfoUrlPath(BuildIDRef ID) {
153 buildIDToString(ID), "debuginfo");
157 Expected<std::string> getCachedOrDownloadDebuginfo(BuildIDRef ID) {
158 std::string UrlPath = getDebuginfodDebuginfoUrlPath(ID);
455 BuildIDRef ID = getBuildID(Object);
456 if (ID.empty())
459 std::string IDString = buildIDToString(ID);
478 DebuginfodCollection::getBinaryPath(BuildIDRef ID) {
479 Log.push("getting binary path of ID " + buildIDToString(ID));
481 auto Loc = Binaries.find(buildIDToString(ID));
490 DebuginfodCollection::getDebugBinaryPath(BuildIDRef ID) {
491 Log.push("getting debug binary path of ID " + buildIDToString(ID));
493 auto Loc = DebugBinaries.find(buildIDToString(ID));
501 Expected<std::string> DebuginfodCollection::findBinaryPath(BuildIDRef ID) {
504 Expected<std::optional<std::string>> PathOrErr = getBinaryPath(ID);
514 PathOrErr = getBinaryPath(ID);
525 Expected<std::string> PathOrErr = getCachedOrDownloadExecutable(ID);
530 return findDebugBinaryPath(ID);
533 Expected<std::string> DebuginfodCollection::findDebugBinaryPath(BuildIDRef ID) {
535 Expected<std::optional<std::string>> PathOrErr = getDebugBinaryPath(ID);
545 PathOrErr = getBinaryPath(ID);
555 return getCachedOrDownloadDebuginfo(ID);
567 {404, "text/plain", "Build ID is not a hex string\n"});
570 object::BuildID ID(IDString.begin(), IDString.end());
571 Expected<std::string> PathOrErr = Collection.findDebugBinaryPath(ID);
574 Request.setResponse({404, "text/plain", "Build ID not found\n"});
585 {404, "text/plain", "Build ID is not a hex string\n"});
588 object::BuildID ID(IDString.begin(), IDString.end());
589 Expected<std::string> PathOrErr = Collection.findBinaryPath(ID);
592 Request.setResponse({404, "text/plain", "Build ID not found\n"});