2003-08-06 04:23:04 +00:00
|
|
|
//===- TableGenBackend.cpp - Base class for TableGen Backends ---*- C++ -*-===//
|
2005-04-22 00:00:37 +00:00
|
|
|
//
|
2003-10-20 20:20:30 +00:00
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 20:37:13 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2005-04-22 00:00:37 +00:00
|
|
|
//
|
2003-10-20 20:20:30 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2003-08-06 04:23:04 +00:00
|
|
|
//
|
|
|
|
// This file provides useful services for TableGen backends...
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2011-10-01 16:41:13 +00:00
|
|
|
#include "llvm/TableGen/TableGenBackend.h"
|
|
|
|
#include "llvm/TableGen/Record.h"
|
2004-08-01 03:55:39 +00:00
|
|
|
using namespace llvm;
|
2003-11-11 22:41:34 +00:00
|
|
|
|
2003-08-06 04:23:04 +00:00
|
|
|
void TableGenBackend::EmitSourceFileHeader(const std::string &Desc,
|
2009-07-03 00:10:29 +00:00
|
|
|
raw_ostream &OS) const {
|
2003-08-06 04:23:04 +00:00
|
|
|
OS << "//===- TableGen'erated file -------------------------------------*-"
|
|
|
|
" C++ -*-===//\n//\n// " << Desc << "\n//\n// Automatically generate"
|
|
|
|
"d file, do not edit!\n//\n//===------------------------------------"
|
2004-08-17 03:08:28 +00:00
|
|
|
"----------------------------------===//\n\n";
|
2003-08-06 04:23:04 +00:00
|
|
|
}
|
|
|
|
|