/
GitCaptain
/
llvm-project
Обзор
Документация
Войти
/
GitCaptain
/
llvm-project
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
fix-tests
lldb/utils/TableGen/LLDBTableGenUtils.cpp
21 строка
757 B
Jonas Devlieghere
[TableGen] Move helpers into LLDBTableGenUtils.
31 июл 2019, 03:47
31 июл 2019, 03:47
be019c7
Код
Авторство
О чём код?
//===- LLDBTableGenUtils.cpp ----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "LLDBTableGenUtils.h" #include "llvm/TableGen/Record.h" using namespace llvm; using namespace lldb_private; RecordsByName lldb_private::getRecordsByName(std::vector<Record *> Records, StringRef Name) { RecordsByName Result; for (Record *R : Records) Result[R->getValueAsString(Name).str()].push_back(R); return Result; }