[PATCH] D72736: [AIX] Add improved interface for retrieving load module paths
Jonathan Crowther via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 14 14:37:42 PST 2020
Jonathan.Crowther created this revision.
Jonathan.Crowther added reviewers: hubert.reinterpretcast, xingxue.
Herald added subscribers: llvm-commits, cfe-commits, arphaman, hiraditya.
Herald added projects: clang, LLVM.
Implemented (for AIX) a function to take any function and return the path of the load module it is located in. Used this function to implement `getMainExecutable` for AIX (instead of incorrectly attempting to use `/proc`) Additionally, fixed multiple locations where `getMainExecutable` was used incorrectly.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D72736
Files:
clang/lib/Tooling/CompilationDatabase.cpp
clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
clang/tools/libclang/CIndexer.cpp
llvm/include/llvm/Support/FileUtilities.h
llvm/lib/Support/FileUtilities.cpp
llvm/lib/Support/Unix/Path.inc
llvm/unittests/Support/ProgramTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72736.238095.patch
Type: text/x-patch
Size: 10804 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200114/6424f9a7/attachment.bin>
More information about the cfe-commits
mailing list