From 79976b3790014ccda1876ecf643d297452ede3ac Mon Sep 17 00:00:00 2001 From: Alex Langford Date: Thu, 18 Jul 2019 20:58:24 +0000 Subject: [PATCH] [Breakpoint] Replace use of ClangASTContext with TypeSystem llvm-svn: 366495 --- lldb/source/Breakpoint/Watchpoint.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lldb/source/Breakpoint/Watchpoint.cpp b/lldb/source/Breakpoint/Watchpoint.cpp index e8a926527d24..071f8fc868e8 100644 --- a/lldb/source/Breakpoint/Watchpoint.cpp +++ b/lldb/source/Breakpoint/Watchpoint.cpp @@ -13,7 +13,7 @@ #include "lldb/Core/ValueObject.h" #include "lldb/Core/ValueObjectMemory.h" #include "lldb/Expression/UserExpression.h" -#include "lldb/Symbol/ClangASTContext.h" +#include "lldb/Symbol/TypeSystem.h" #include "lldb/Target/Process.h" #include "lldb/Target/Target.h" #include "lldb/Target/ThreadSpec.h" @@ -35,7 +35,8 @@ Watchpoint::Watchpoint(Target &target, lldb::addr_t addr, uint32_t size, else { // If we don't have a known type, then we force it to unsigned int of the // right size. - ClangASTContext *ast_context = target.GetScratchClangASTContext(); + TypeSystem *ast_context = + target.GetScratchTypeSystemForLanguage(nullptr, eLanguageTypeC); m_type = ast_context->GetBuiltinTypeForEncodingAndBitSize(eEncodingUint, 8 * size); }