Skip to content

Commit

Permalink
StringRef'ize EmitSourceFileHeader().
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150917 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Ahmed Charles committed Feb 19, 2012
1 parent 1bf724b commit d7ace3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions include/llvm/TableGen/TableGenBackend.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#define LLVM_TABLEGEN_TABLEGENBACKEND_H

#include "llvm/Support/raw_ostream.h"
#include <string>

namespace llvm {

Expand All @@ -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;

};

Expand Down
2 changes: 1 addition & 1 deletion lib/TableGen/TableGenBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d7ace3f

Please sign in to comment.