llir-opt  0.0.1
Low-Level Post-Link Optimiser for OCaml and C
get_class.h
1 // This file if part of the llir-opt project.
2 // Licensing information can be found in the LICENSE file.
3 // (C) 2018 Nandor Licker. All rights reserved.
4 
5 #pragma once
6 
7 #include <llvm/TableGen/Record.h>
8 
9 
10 
15 public:
16  GetClassWriter(llvm::RecordKeeper &records) : records_(records) {}
17 
18  void run(llvm::raw_ostream &OS);
19 
20 private:
21  void EmitClassIntf(llvm::raw_ostream &OS, llvm::Record &r);
22  void EmitClassImpl(llvm::raw_ostream &OS, llvm::Record &r);
23  void EmitClassCast(llvm::raw_ostream &OS, llvm::Record &r);
24 
25 private:
26  std::vector<llvm::Record *> bases_;
27  llvm::RecordKeeper &records_;
28 };
GetClassWriter
Definition: get_class.h:14