aboutsummaryrefslogtreecommitdiff
path: root/lib/TableGen
diff options
context:
space:
mode:
authorAhmed Charles <ace2001ac@gmail.com>2012-02-19 11:35:20 +0000
committerAhmed Charles <ace2001ac@gmail.com>2012-02-19 11:35:20 +0000
commitd7ace3f8d1b7216d7381c408b26259e1201f7c29 (patch)
tree8345c630f77baa7aa85baae5a0eced114cb99048 /lib/TableGen
parent1bf724b28b7a44d5323f9e42718192987c75ce79 (diff)
StringRef'ize EmitSourceFileHeader().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150917 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/TableGen')
-rw-r--r--lib/TableGen/TableGenBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/TableGen/TableGenBackend.cpp b/lib/TableGen/TableGenBackend.cpp
index 328d9a4930..09bcc7a5b5 100644
--- a/lib/TableGen/TableGenBackend.cpp
+++ b/lib/TableGen/TableGenBackend.cpp
@@ -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"