Home | History | Annotate | Download | only in CodeView
      1 //===- TypeSymbolEmitter.h --------------------------------------*- C++ -*-===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is distributed under the University of Illinois Open Source
      6 // License. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 #ifndef LLVM_DEBUGINFO_CODEVIEW_TYPESYMBOLEMITTER_H
     11 #define LLVM_DEBUGINFO_CODEVIEW_TYPESYMBOLEMITTER_H
     12 
     13 #include "llvm/DebugInfo/CodeView/CodeView.h"
     14 #include "llvm/DebugInfo/CodeView/TypeIndex.h"
     15 
     16 namespace llvm {
     17 class StringRef;
     18 
     19 namespace codeview {
     20 
     21 class TypeSymbolEmitter {
     22 private:
     23   TypeSymbolEmitter(const TypeSymbolEmitter &) = delete;
     24   TypeSymbolEmitter &operator=(const TypeSymbolEmitter &) = delete;
     25 
     26 protected:
     27   TypeSymbolEmitter() {}
     28 
     29 public:
     30   virtual ~TypeSymbolEmitter() {}
     31 
     32 public:
     33   virtual void writeUserDefinedType(TypeIndex TI, StringRef Name) = 0;
     34 };
     35 }
     36 }
     37 
     38 #endif
     39