[Expression] Move IRDynamicChecks to ClangExpressionParser
authorAlex Langford <apl@fb.com>
Fri, 12 Jul 2019 00:58:02 +0000 (00:58 +0000)
committerAlex Langford <apl@fb.com>
Fri, 12 Jul 2019 00:58:02 +0000 (00:58 +0000)
commitbab7e3d78b01d9a4145a08e9c4cd4e7626e34d08
treec6d475c9d84dcbfecdab6132361304999d1c52b3
parent8955be68cfca54e5f1195bfb338cc49164d929a3
[Expression] Move IRDynamicChecks to ClangExpressionParser

Summary:
IRDynamicChecks in its current form is specific to Clang since it deals
with the C language family. It is possible that we may want to
instrument code generated for other languages, but we can factor in a
more general mechanism to do so at a later time.

This decouples ObCLanguageRuntime from Expression!

Reviewers: compnerd, clayborg, jingham, JDevlieghere

Subscribers: mgorny, lldb-commits

Differential Revision: https://reviews.llvm.org/D64591

llvm-svn: 365853
lldb/include/lldb/Expression/DynamicCheckerFunctions.h [new file with mode: 0644]
lldb/source/Expression/CMakeLists.txt
lldb/source/Plugins/ExpressionParser/Clang/CMakeLists.txt
lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
lldb/source/Plugins/ExpressionParser/Clang/IRDynamicChecks.cpp [moved from lldb/source/Expression/IRDynamicChecks.cpp with 96% similarity]
lldb/source/Plugins/ExpressionParser/Clang/IRDynamicChecks.h [moved from lldb/include/lldb/Expression/IRDynamicChecks.h with 79% similarity]
lldb/source/Target/Process.cpp
lldb/source/Target/ThreadPlanCallUserExpression.cpp