Skip to content

Commit 4ad67e7

Browse files
author
Kevin Frei
committed
Added settings for cache location and timeout
1 parent 33a6ce1 commit 4ad67e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Debuginfod/Debuginfod.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ Expected<std::string> getCachedOrDownloadDebuginfo(BuildIDRef ID) {
159159
return getCachedOrDownloadArtifact(getDebuginfodCacheKey(UrlPath), UrlPath);
160160
}
161161

162+
Expected<std::string> getCachedOrDownloadDebuginfo(BuildIDRef ID) {
163+
std::string UrlPath = getDebuginfodDebuginfoUrlPath(ID);
164+
return getCachedOrDownloadArtifact(getDebuginfodCacheKey(UrlPath), UrlPath);
165+
}
162166
// General fetching function.
163167
Expected<std::string> getCachedOrDownloadArtifact(StringRef UniqueKey,
164168
StringRef UrlPath) {

0 commit comments

Comments
 (0)