aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/BinaryStreamWriter.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2017-05-17 19:33:10 +0000
committerDimitry Andric <dimitry@andric.com>2017-05-17 19:33:10 +0000
commitebc8779301e145c643f257d583fc2e72e28a52f6 (patch)
tree41d6d68ed7c45ef8b6192d0c7dec564595c807c6 /llvm/lib/Support/BinaryStreamWriter.cpp
parentee324ffc1f8d664e8dd27cab6e50807e90ee0032 (diff)
downloadllvm-ebc8779301e145c643f257d583fc2e72e28a52f6.zip
llvm-ebc8779301e145c643f257d583fc2e72e28a52f6.tar.gz
llvm-ebc8779301e145c643f257d583fc2e72e28a52f6.tar.bz2
Revert r303015, because it has the unintended side effect of breaking
driver-mode recognition in clang (this is because the sysctl method always returns one and only one executable path, even for an executable with multiple links): Fix DynamicLibraryTest.cpp on FreeBSD and NetBSD Summary: After rL301562, on FreeBSD the DynamicLibrary unittests fail, because the test uses getMainExecutable("DynamicLibraryTests", Ptr), and since the path does not contain any slashes, retrieving the main executable will not work. Reimplement getMainExecutable() for FreeBSD and NetBSD using sysctl(3), which is more reliable than fiddling with relative or absolute paths. Also add retrieval of the original argv[] from the GoogleTest framework, to use as a fallback for other OSes. Reviewers: emaste, marsupial, hans, krytarowski Reviewed By: krytarowski Subscribers: krytarowski, llvm-commits Differential Revision: https://reviews.llvm.org/D33171 llvm-svn: 303285
Diffstat (limited to 'llvm/lib/Support/BinaryStreamWriter.cpp')
0 files changed, 0 insertions, 0 deletions