//===-- TypeIndex.cpp - CodeView type index ---------------------*- C++ -*-===// // // 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 "llvm/DebugInfo/CodeView/TypeIndex.h" #include "llvm/DebugInfo/CodeView/TypeCollection.h" #include "llvm/Support/ScopedPrinter.h" usingnamespacellvm; usingnamespacellvm::codeview; namespace { struct SimpleTypeEntry { … }; /// The names here all end in "*". If the simple type is a pointer type, we /// return the whole name. Otherwise we lop off the last character in our /// StringRef. static const SimpleTypeEntry SimpleTypeNames[] = …; } // namespace StringRef TypeIndex::simpleTypeName(TypeIndex TI) { … } void llvm::codeview::printTypeIndex(ScopedPrinter &Printer, StringRef FieldName, TypeIndex TI, TypeCollection &Types) { … }