[Lldb-commits] [PATCH] D82537: [lldb] Deduplicate copy-pasted TypeSystemMap::GetTypeSystemForLanguage
Raphael Isemann via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 25 03:37:00 PDT 2020
teemperor created this revision.
teemperor added a reviewer: LLDB.
Herald added a subscriber: JDevlieghere.
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`.
Repository:
rLLDB LLDB
https://reviews.llvm.org/D82537
Files:
lldb/include/lldb/Symbol/TypeSystem.h
lldb/source/Symbol/TypeSystem.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82537.273282.patch
Type: text/x-patch
Size: 6170 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200625/2768a506/attachment-0001.bin>
More information about the lldb-commits
mailing list