[Core] Remove use of ClangASTContext in DumpDataExtractor
authorAlex Langford <apl@fb.com>
Fri, 6 Sep 2019 21:05:21 +0000 (21:05 +0000)
committerAlex Langford <apl@fb.com>
Fri, 6 Sep 2019 21:05:21 +0000 (21:05 +0000)
commitb482db6dfeda8631afae3ca706ad3e3ccfd87d5d
treec61994d2cf99062eaae97dc6c4b65b89f7ad3635
parent6cee434ed10ead6b7416ca5ee9592b2b207eeb0f
[Core] Remove use of ClangASTContext in DumpDataExtractor

Summary:
DumpDataExtractor uses ClangASTContext in order to get the proper llvm
fltSemantics for the type it needs so that it can dump floats in a more
precise way. However, there's no reason that this behavior needs to be
specific ClangASTContext. Instead, I think it makes sense to ask
TypeSystems for the float semantics for a type of a given size.

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

llvm-svn: 371258
lldb/include/lldb/Symbol/ClangASTContext.h
lldb/include/lldb/Symbol/TypeSystem.h
lldb/source/Core/DumpDataExtractor.cpp
lldb/source/Symbol/ClangASTContext.cpp