diff options
author | Alex Langford <apl@fb.com> | 2019-11-14 13:41:52 -0800 |
---|---|---|
committer | Alex Langford <apl@fb.com> | 2019-12-12 11:53:24 -0800 |
commit | 3031818a2e9fca1e53cd882ccfcc3718699991b4 (patch) | |
tree | 4682f9ca1c9db4b7be7170e3faac6c09b6aa6544 /lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp | |
parent | 7a54f727a2a546ab34df29f48c8e1a10218d74a6 (diff) | |
download | bcm5719-llvm-3031818a2e9fca1e53cd882ccfcc3718699991b4.tar.gz bcm5719-llvm-3031818a2e9fca1e53cd882ccfcc3718699991b4.zip |
[Target] Remove Target::GetScratchClangASTContext
Target doesn't really need to know about ClangASTContext more than any
other TypeSystem. We can create a method ClangASTContext::GetScratch for
anything who needs a ClangASTContext specifically instead of just a
generic TypeSystem.
Diffstat (limited to 'lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp')
-rw-r--r-- | lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp b/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp index 69e59bc4f7e..08e3737865a 100644 --- a/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp +++ b/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp @@ -412,7 +412,7 @@ void SystemRuntimeMacOSX::ReadLibdispatchTSDIndexes() { #endif ClangASTContext *ast_ctx = - m_process->GetTarget().GetScratchClangASTContext(); + ClangASTContext::GetScratch(m_process->GetTarget()); if (ast_ctx->getASTContext() && m_dispatch_tsd_indexes_addr != LLDB_INVALID_ADDRESS) { CompilerType uint16 = |