aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
diff options
context:
space:
mode:
authorMichael Buch <michaelbuch12@gmail.com>2022-08-19 15:11:26 +0100
committerMichael Buch <michaelbuch12@gmail.com>2022-08-22 13:22:20 +0100
commit09f608fda51ca9dd2d88c2985bad1cfc1e36251e (patch)
treedb9004947f4cf957c4abbdd7cfcd2e156d125f5a /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
parent6f19f98710f897ecaf148f42da6eec9d14631449 (diff)
downloadllvm-09f608fda51ca9dd2d88c2985bad1cfc1e36251e.zip
llvm-09f608fda51ca9dd2d88c2985bad1cfc1e36251e.tar.gz
llvm-09f608fda51ca9dd2d88c2985bad1cfc1e36251e.tar.bz2
[lldb][ClangExpression] Remove storage-class check when creating AsmLabel
This check was put in place to prevent static functions from translation units outside the one that the current expression is evaluated from taking precedence over functions in the global namespace. However, this is really a different bug. LLDB lumps functions from all CUs into a single AST and ends up picking the file-static even when C++ context rules wouldn't allow that to happen. This patch removes the check so we apply the AsmLabel to all FunctionDecls we create from DWARF if we have a linkage name available. This makes the code-path easier to reason about and allows calling static functions in contexts where we previously would've chosen the wrong function. We also flip the XFAILs in the API test to reflect what effect this change has. **Testing** * Fixed API tests and added XFAIL Differential Revision: https://reviews.llvm.org/D132231
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
0 files changed, 0 insertions, 0 deletions