Fold assert-only-used variable into the assert.
[llvm/stm8.git] / utils / TableGen / CallingConvEmitter.h
blob431c33bcc0df5d07fae61127e8fc751c6c876d34
1 //===- CallingConvEmitter.h - Generate calling conventions ------*- 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 // This tablegen backend is responsible for emitting descriptions of the calling
11 // conventions supported by this target.
13 //===----------------------------------------------------------------------===//
15 #ifndef CALLINGCONV_EMITTER_H
16 #define CALLINGCONV_EMITTER_H
18 #include "TableGenBackend.h"
19 #include <cassert>
21 namespace llvm {
22 class CallingConvEmitter : public TableGenBackend {
23 RecordKeeper &Records;
24 public:
25 explicit CallingConvEmitter(RecordKeeper &R) : Records(R) {}
27 // run - Output the asmwriter, returning true on failure.
28 void run(raw_ostream &o);
30 private:
31 void EmitCallingConv(Record *CC, raw_ostream &O);
32 void EmitAction(Record *Action, unsigned Indent, raw_ostream &O);
33 unsigned Counter;
36 #endif