aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2019-05-29 07:20:30 +0000
committerMichal Gorny <mgorny@gentoo.org>2019-05-29 07:20:30 +0000
commite04b002cf89014592b3603bb9af9f74a01626771 (patch)
tree89b2fdf15e85adee7f95ac88f770c2c0d2abd591 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent48061cd999a810b6b2fc631554729df44d9699da (diff)
downloadllvm-e04b002cf89014592b3603bb9af9f74a01626771.zip
llvm-e04b002cf89014592b3603bb9af9f74a01626771.tar.gz
llvm-e04b002cf89014592b3603bb9af9f74a01626771.tar.bz2
[libunwind] [test] Fix inferring source paths
Fix two issues that caused libcxx source path not to be inferred correctly when not specified explicitly: 1. get_lit_conf() uses default value only if the lit variable is set to None. Due to the mehod of substituting lit.site.cfg, they were "" rather than None when unset, effectively causing the default never to apply. Instead, use 'or' construct to use the default whenever get_lit_conf() returns a false value. 2. If os.path.join() is given a component starting with '/', it takes it to be an absolute path and ignores everything preceding it. Remove the slash to correctly append subdirectory. With these two fixes, libunwind tests start working on NetBSD buildbot again. Differential Revision: https://reviews.llvm.org/D62005 llvm-svn: 361931
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions