[llvm-dwp] Get the DWO file from relative path if the absolute path is not valid
authorZhang Qing Shan <zhangqingshan.zll@bytedance.com>
Sat, 10 Sep 2022 00:05:20 +0000 (08:05 +0800)
committerZhang Qing Shan <zhangqingshan.zll@bytedance.com>
Tue, 13 Sep 2022 05:45:51 +0000 (13:45 +0800)
commit4531f5385125dd6448004a16cd80a94484ca68b7
tree19bfe2eea3cbc8073b71a84d6043b86df837fdfe
parent79fa0ec8c4bfeeb21f7b44ebd9a66e7ec9781798
[llvm-dwp] Get the DWO file from relative path if the absolute path is not valid

Extend the llvm-dwp to support searching the DWOs that from relative path for the
case that build from remote building system(different comp_dir).

Reviewd By: dblaikie

Differential Revision: https://reviews.llvm.org/D133480
llvm/test/tools/llvm-dwp/Inputs/search_dwos/a.dwo [new file with mode: 0644]
llvm/test/tools/llvm-dwp/Inputs/search_dwos/b.dwo [new file with mode: 0644]
llvm/test/tools/llvm-dwp/Inputs/search_dwos/main [new file with mode: 0755]
llvm/test/tools/llvm-dwp/X86/search_dwos.test [new file with mode: 0644]
llvm/tools/llvm-dwp/llvm-dwp.cpp