[all-commits] [llvm/llvm-project] f974d6: [lldb] Deduplicate copy-pasted TypeSystemMap::GetT...

Raphael Isemann via All-commits all-commits at lists.llvm.org
Fri Aug 14 02:59:36 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f974d64b372c5554783369bab901de8f4dee5e02
      https://github.com/llvm/llvm-project/commit/f974d64b372c5554783369bab901de8f4dee5e02
  Author: Raphael Isemann <teemperor at gmail.com>
  Date:   2020-08-14 (Fri, 14 Aug 2020)

  Changed paths:
    M lldb/include/lldb/Symbol/TypeSystem.h
    M lldb/source/Symbol/TypeSystem.cpp

  Log Message:
  -----------
  [lldb] Deduplicate copy-pasted TypeSystemMap::GetTypeSystemForLanguage

There are two implementations for `TypeSystemMap::GetTypeSystemForLanguage`
which are both identical beside one taking a `Module` and one taking a `Target`
(and then passing that argument to the `TypeSystem::CreateInstance` function).

This merges both implementations into one function with a lambda that wraps the
different calls to `TypeSystem::CreateInstance`.

Reviewed By: #lldb, JDevlieghere

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




More information about the All-commits mailing list