mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
StringRef'ize EmitSourceFileHeader().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150917 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1bf724b28b
commit
d7ace3f8d1
@ -16,7 +16,6 @@
|
||||
#define LLVM_TABLEGEN_TABLEGENBACKEND_H
|
||||
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <string>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@ -35,7 +34,7 @@ struct TableGenBackend {
|
||||
public: // Useful helper routines...
|
||||
/// EmitSourceFileHeader - Output a LLVM style file header to the specified
|
||||
/// ostream.
|
||||
void EmitSourceFileHeader(const std::string &Desc, raw_ostream &OS) const;
|
||||
void EmitSourceFileHeader(StringRef Desc, raw_ostream &OS) const;
|
||||
|
||||
};
|
||||
|
||||
|
@ -17,7 +17,7 @@ using namespace llvm;
|
||||
|
||||
void TableGenBackend::anchor() { }
|
||||
|
||||
void TableGenBackend::EmitSourceFileHeader(const std::string &Desc,
|
||||
void TableGenBackend::EmitSourceFileHeader(StringRef Desc,
|
||||
raw_ostream &OS) const {
|
||||
OS << "//===- TableGen'erated file -------------------------------------*-"
|
||||
" C++ -*-===//\n//\n// " << Desc << "\n//\n// Automatically generate"
|
||||
|
Loading…
Reference in New Issue
Block a user