summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp
diff options
context:
space:
mode:
authorShafik Yaghmour <syaghmour@apple.com>2018-11-08 18:42:00 +0000
committerShafik Yaghmour <syaghmour@apple.com>2018-11-08 18:42:00 +0000
commit8c5ec1ff4653ff4011c5228f8fbdc800ebe35456 (patch)
treebfce6fb0f380e8553093573b1ea12d363425af0d /lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp
parent7a44fe956a249585187cd5f82a0683dc117e0ae8 (diff)
downloadbcm5719-llvm-8c5ec1ff4653ff4011c5228f8fbdc800ebe35456.tar.gz
bcm5719-llvm-8c5ec1ff4653ff4011c5228f8fbdc800ebe35456.zip
Refactor ClangASTContext::AddEnumerationValueToEnumerationType() to remove redundant parameter which can be calculated from other parameter.
rdar://problem/43822994 Differential Revision: https://reviews.llvm.org/D54003 llvm-svn: 346428
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp')
-rw-r--r--lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp b/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp
index 88848a63902..432ba9ecea7 100644
--- a/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp
+++ b/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp
@@ -159,13 +159,9 @@ Error UdtRecordCompleter::visitKnownMember(CVMemberRecord &cvr,
TypeSP underlying_type =
m_symbol_file.GetOrCreateType(m_cvr.er.getUnderlyingType());
- lldb::opaque_compiler_type_t enum_qt = m_derived_ct.GetOpaqueQualType();
-
- CompilerType enumerator_type = clang.GetEnumerationIntegerType(enum_qt);
uint64_t byte_size = underlying_type->GetByteSize();
clang.AddEnumerationValueToEnumerationType(
- m_derived_ct.GetOpaqueQualType(), enumerator_type, decl,
- name.str().c_str(), enumerator.Value.getSExtValue(),
+ m_derived_ct, decl, name.str().c_str(), enumerator.Value.getSExtValue(),
byte_size * 8);
return Error::success();
}
@@ -182,4 +178,4 @@ void UdtRecordCompleter::complete() {
if (auto *record_decl = llvm::dyn_cast<clang::CXXRecordDecl>(&m_tag_decl)) {
m_symbol_file.GetASTImporter().InsertRecordDecl(record_decl, m_layout);
}
-} \ No newline at end of file
+}
OpenPOWER on IntegriCloud