Author: xiaobai Date: Thu Jul 18 13:58:24 2019 New Revision: 366495 URL: http://llvm.org/viewvc/llvm-project?rev=366495&view=rev Log: [Breakpoint] Replace use of ClangASTContext with TypeSystem
Modified: lldb/trunk/source/Breakpoint/Watchpoint.cpp Modified: lldb/trunk/source/Breakpoint/Watchpoint.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Breakpoint/Watchpoint.cpp?rev=366495&r1=366494&r2=366495&view=diff ============================================================================== --- lldb/trunk/source/Breakpoint/Watchpoint.cpp (original) +++ lldb/trunk/source/Breakpoint/Watchpoint.cpp Thu Jul 18 13:58:24 2019 @@ -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, l 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); } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits