summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.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/DWARF/DWARFASTParserClang.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/DWARF/DWARFASTParserClang.cpp')
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
index ee3942a83b7..9981aec5a29 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
@@ -2500,9 +2500,7 @@ size_t DWARFASTParserClang::ParseChildEnumerators(
if (name && name[0] && got_value) {
m_ast.AddEnumerationValueToEnumerationType(
- clang_type.GetOpaqueQualType(),
- m_ast.GetEnumerationIntegerType(clang_type.GetOpaqueQualType()),
- decl, name, enum_value, enumerator_byte_size * 8);
+ clang_type, decl, name, enum_value, enumerator_byte_size * 8);
++enumerators_added;
}
}
OpenPOWER on IntegriCloud