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:
Ahmed Charles 2012-02-19 11:35:20 +00:00
parent 1bf724b28b
commit d7ace3f8d1
2 changed files with 2 additions and 3 deletions

View File

@ -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;
};

View File

@ -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"