[PATCH] D72736: [AIX] Add improved interface for retrieving load module paths

Hubert Tong via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 14 16:12:32 PST 2020


hubert.reinterpretcast added inline comments.


================
Comment at: llvm/include/llvm/Support/FileUtilities.h:38
+#if defined(_AIX)
+  SmallString<128> getLoadModuleFilenameForFunctionAIX(void (*Func)(void));
+#endif
----------------
This should be an internal function in the `.cpp` file implementing the following function. It should not be declared in an interface `.h` file.


================
Comment at: llvm/include/llvm/Support/FileUtilities.h:42
+  template <typename FuncAddrType>
+  SmallString<128> getLoadModuleFilenameForFunction(FuncAddrType FuncAddr) {
+    if (!FuncAddr) {
----------------
The description of `FileUtilities.h` does not seem to encompass what this function does. Perhaps `SystemUtils.h` works better? fyi, when posting patches to Phabricator, the "full context" (using `diff -U <large number>`) should be provided.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72736/new/

https://reviews.llvm.org/D72736





More information about the cfe-commits mailing list