diff options
author | Nico Weber <nicolasweber@gmx.de> | 2019-01-31 22:15:32 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2019-01-31 22:15:32 +0000 |
commit | 0abcafd8a48ddfcf80b41c20810d6f44de58fc24 (patch) | |
tree | 0fab38bb6304df4c9377f5a8808e7e53d5a61926 /llvm/lib/IR/Module.cpp | |
parent | 8f6182f7f669f21e90ad7920a7e911f0444c9da9 (diff) | |
download | llvm-0abcafd8a48ddfcf80b41c20810d6f44de58fc24.zip llvm-0abcafd8a48ddfcf80b41c20810d6f44de58fc24.tar.gz llvm-0abcafd8a48ddfcf80b41c20810d6f44de58fc24.tar.bz2 |
Make clang/test/Index/pch-from-libclang.c pass in more places
- fixes the test on macOS with LLVM_ENABLE_PIC=OFF
- together with D57343, gets the test to pass on Windows
- makes it run everywhere (it seems to just pass on Linux)
The main change is to pull out the resource directory computation into a
function shared by all 3 places that do it. In CIndexer.cpp, this now works no
matter if libclang is in lib/ or bin/ or statically linked to a binary in bin/.
Differential Revision: https://reviews.llvm.org/D57345
llvm-svn: 352803
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions