mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
764dc754fe
TableGen backends are simply written as functions now. Patch by Sean Silva! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158389 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
951 B
C++
24 lines
951 B
C++
//===- TableGenBackend.cpp - Utilities for TableGen Backends ----*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file provides useful services for TableGen backends...
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/Support/raw_ostream.h"
|
|
#include "llvm/TableGen/TableGenBackend.h"
|
|
using namespace llvm;
|
|
|
|
void llvm::emitSourceFileHeader(StringRef Desc, raw_ostream &OS) {
|
|
OS << "//===- TableGen'erated file -------------------------------------*-"
|
|
" C++ -*-===//\n//\n// " << Desc << "\n//\n// Automatically generate"
|
|
"d file, do not edit!\n//\n//===------------------------------------"
|
|
"----------------------------------===//\n\n";
|
|
}
|