blob: b3e33b5f9c24d2186aab2928e0f47fa14cac380a [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001//===- TableGenBackend.cpp - Base class for TableGen Backends ---*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattnerfd6c2f02007-12-29 20:37:13 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007//
8//===----------------------------------------------------------------------===//
9//
10// This file provides useful services for TableGen backends...
11//
12//===----------------------------------------------------------------------===//
13
14#include "TableGenBackend.h"
15#include "Record.h"
16using namespace llvm;
17
18void TableGenBackend::EmitSourceFileHeader(const std::string &Desc,
Daniel Dunbard4287062009-07-03 00:10:29 +000019 raw_ostream &OS) const {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020 OS << "//===- TableGen'erated file -------------------------------------*-"
21 " C++ -*-===//\n//\n// " << Desc << "\n//\n// Automatically generate"
22 "d file, do not edit!\n//\n//===------------------------------------"
23 "----------------------------------===//\n\n";
24}
25