Remove redundant curly braces.
authorAdrian Prantl <aprantl@apple.com>
Thu, 22 Aug 2019 16:58:56 +0000 (16:58 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 22 Aug 2019 16:58:56 +0000 (16:58 +0000)
llvm-svn: 369670

lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
lldb/tools/lldb-test/lldb-test.cpp

index f0c463726fba72ee6a663003db52da425c2d7c1d..5ef46ef3239f35989049b05d4782d6bfdf0b02aa 100644 (file)
@@ -148,7 +148,7 @@ TypeSP DWARFASTParserClang::ParseTypeFromDWO(const DWARFDIE &die, Log *log) {
   die.GetDeclContext(decl_context);
   TypeMap dwo_types;
 
-  if (!dwo_module_sp->GetSymbolFile()->FindTypes({decl_context}, true,
+  if (!dwo_module_sp->GetSymbolFile()->FindTypes(decl_context, true,
                                                  dwo_types)) {
     if (!IsClangModuleFwdDecl(die))
       return TypeSP();
@@ -159,7 +159,7 @@ TypeSP DWARFASTParserClang::ParseTypeFromDWO(const DWARFDIE &die, Log *log) {
     for (const auto &name_module : sym_file.getExternalTypeModules()) {
       if (!name_module.second)
         continue;
-      if (name_module.second->GetSymbolFile()->FindTypes({decl_context}, true,
+      if (name_module.second->GetSymbolFile()->FindTypes(decl_context, true,
                                                          dwo_types))
         break;
     }
index d7b67373e5ea068dee8316e0e5b83bfb7d5e5f83..5eaf006d12859be1490de1e5fed18d8abb181a9d 100644 (file)
@@ -513,7 +513,7 @@ Error opts::symbols::findTypes(lldb_private::Module &Module) {
     Symfile.FindTypes(ConstString(Name), ContextPtr, true, UINT32_MAX,
                       SearchedFiles, Map);
   else
-    Symfile.FindTypes({parseCompilerContext()}, true, Map);
+    Symfile.FindTypes(parseCompilerContext(), true, Map);
 
   outs() << formatv("Found {0} types:\n", Map.GetSize());
   StreamString Stream;