[Lldb-commits] [PATCH] D147748: [lldb] Implement SymbolFile::ContainsCompileOption
Augusto Noronha via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 7 10:44:34 PDT 2023
augusto2112 added a comment.
In D147748#4251543 <https://reviews.llvm.org/D147748#4251543>, @JDevlieghere wrote:
> At a higher level I wonder if this is really the best interface. If you ever need all the compile options, you probably want something like `Args SymbolFile::GetCompileOptions()`. Wouldn't that be a more generic way to do the same thing here? Or do we expect that for `DW_AT_APPLE_flags` the only possible use case is to check whether a particular flag is set?
I agree. I implemented it in such a a way to mirror the `GetCompileOption` function (which apparently doesn't exist upstream anymore). I'll update it to return the `Args` instead.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147748/new/
https://reviews.llvm.org/D147748
More information about the lldb-commits
mailing list