summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/ScriptInterpreter.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-12-23 09:05:07 +0100
committerRaphael Isemann <teemperor@gmail.com>2019-12-23 09:56:54 +0100
commit42ec584a8b4e604360b7a4d45a65c570d58b1bf9 (patch)
tree4aad4736fe921fd2e1fdbd916671d736709a4fdc /lldb/source/Interpreter/ScriptInterpreter.cpp
parent6d5e35e89d73711b494c83d3f8b68582d06a0b53 (diff)
downloadbcm5719-llvm-42ec584a8b4e604360b7a4d45a65c570d58b1bf9.tar.gz
bcm5719-llvm-42ec584a8b4e604360b7a4d45a65c570d58b1bf9.zip
[lldb][NFC] Make CompilerDeclContext construction type safe
The CompilerDeclContext constructor takes a void* pointer which means that all callers of this constructor need to first explicitly convert all pointers to clang::DeclContext*. This causes that we for example can't just pass a TranslationUnitDecl* to the constructor without first casting it to its parent class (as it inherits from both Decl and DeclContext so the void* pointer is actually a Decl*). This patch introduces a utility function in the ClangASTContext which gets rid of the requirement to cast all pointers to clang::DeclContext. Also moves all constructor calls to use this function instead which is NFC (beside the change in DWARFASTParserClangTests.cpp).
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud