aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/MetadataLoader.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2021-04-19 15:50:10 +0200
committerRaphael Isemann <teemperor@gmail.com>2021-04-22 12:14:31 +0200
commit00764c36edf88ae9806e8d57a6addb782e6ceae8 (patch)
treee96a6f792c46e6d7a27a9a6fb4bd42627d322885 /llvm/lib/Bitcode/Reader/MetadataLoader.cpp
parent092619cf6b8d33e8830221925c1174f5d373f1d2 (diff)
downloadllvm-00764c36edf88ae9806e8d57a6addb782e6ceae8.zip
llvm-00764c36edf88ae9806e8d57a6addb782e6ceae8.tar.gz
llvm-00764c36edf88ae9806e8d57a6addb782e6ceae8.tar.bz2
[lldb] Add support for evaluating expressions in static member functions
At the moment the expression parser doesn't support evaluating expressions in static member functions and just pretends the expression is evaluated within a non-member function. This causes that all static members are inaccessible when doing unqualified name lookup. This patch adds support for evaluating in static member functions. It essentially just does the same setup as what LLDB is already doing for non-static member functions (i.e., wrapping the expression in a fake member function) with the difference that we now mark the wrapping function as static (to prevent access to non-static members). Reviewed By: shafik, jarin Differential Revision: https://reviews.llvm.org/D81550
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions