1 //===- TypeSymbolEmitter.h --------------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef LLVM_DEBUGINFO_CODEVIEW_TYPESYMBOLEMITTER_H 10 #define LLVM_DEBUGINFO_CODEVIEW_TYPESYMBOLEMITTER_H 11 12 #include "llvm/DebugInfo/CodeView/CodeView.h" 13 #include "llvm/DebugInfo/CodeView/TypeIndex.h" 14 15 namespace llvm { 16 class StringRef; 17 18 namespace codeview { 19 20 class TypeSymbolEmitter { 21 private: 22 TypeSymbolEmitter(const TypeSymbolEmitter &) = delete; 23 TypeSymbolEmitter &operator=(const TypeSymbolEmitter &) = delete; 24 25 protected: 26 TypeSymbolEmitter() {} 27 28 public: 29 virtual ~TypeSymbolEmitter() {} 30 31 public: 32 virtual void writeUserDefinedType(TypeIndex TI, StringRef Name) = 0; 33 }; 34 } 35 } 36 37 #endif 38