Path: blob/main/contrib/llvm-project/lldb/utils/TableGen/LLDBTableGenUtils.h
39562 views
//===- LLDBTableGenUtils.h --------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLDB_UTILS_TABLEGEN_LLDBTABLEGENUTILS_H9#define LLDB_UTILS_TABLEGEN_LLDBTABLEGENUTILS_H1011#include "llvm/ADT/StringRef.h"12#include <map>13#include <string>14#include <vector>1516namespace llvm {17class RecordKeeper;18class Record;19} // namespace llvm2021namespace lldb_private {2223/// Map of names to their associated records. This map also ensures that our24/// records are sorted in a deterministic way.25typedef std::map<std::string, std::vector<llvm::Record *>> RecordsByName;2627/// Return records grouped by name.28RecordsByName getRecordsByName(std::vector<llvm::Record *> Records,29llvm::StringRef);3031} // namespace lldb_private3233#endif343536