[Lldb-commits] [lldb] 8059188 - [lldb][NFC] Remove unused ClangASTContext::GetBasicType(ConstString)
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 29 05:11:52 PST 2019
Author: Raphael Isemann
Date: 2019-11-29T14:11:25+01:00
New Revision: 8059188c45f049b52b779d6684ea78b6ef8b168c
URL: https://github.com/llvm/llvm-project/commit/8059188c45f049b52b779d6684ea78b6ef8b168c
DIFF: https://github.com/llvm/llvm-project/commit/8059188c45f049b52b779d6684ea78b6ef8b168c.diff
LOG: [lldb][NFC] Remove unused ClangASTContext::GetBasicType(ConstString)
Added:
Modified:
lldb/include/lldb/Symbol/ClangASTContext.h
lldb/source/Symbol/ClangASTContext.cpp
Removed:
################################################################################
diff --git a/lldb/include/lldb/Symbol/ClangASTContext.h b/lldb/include/lldb/Symbol/ClangASTContext.h
index a55307ef632d..b2c284282f11 100644
--- a/lldb/include/lldb/Symbol/ClangASTContext.h
+++ b/lldb/include/lldb/Symbol/ClangASTContext.h
@@ -152,8 +152,6 @@ class ClangASTContext : public TypeSystem {
CompilerType GetBasicType(lldb::BasicType type);
- CompilerType GetBasicType(ConstString name);
-
static lldb::BasicType GetBasicTypeEnumeration(ConstString name);
CompilerType GetBuiltinTypeForDWARFEncodingAndBitSize(const char *type_name,
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp
index 8428dfe8c4fa..e683a0a9f4be 100644
--- a/lldb/source/Symbol/ClangASTContext.cpp
+++ b/lldb/source/Symbol/ClangASTContext.cpp
@@ -971,11 +971,6 @@ ClangASTContext::GetBasicTypeEnumeration(ConstString name) {
return eBasicTypeInvalid;
}
-CompilerType ClangASTContext::GetBasicType(ConstString name) {
- lldb::BasicType basic_type = ClangASTContext::GetBasicTypeEnumeration(name);
- return GetBasicType(basic_type);
-}
-
uint32_t ClangASTContext::GetPointerByteSize() {
if (m_pointer_byte_size == 0)
if (auto size = GetBasicType(lldb::eBasicTypeVoid)
More information about the lldb-commits
mailing list