Remove unnecessary StringRef::str() call where an implicit conversion works just fine.

llvm-svn: 203960
This commit is contained in:
David Blaikie 2014-03-14 19:53:39 +00:00
parent ba0238fa95
commit c110d4d57c
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ namespace llvm {
const std::string &getMainFileName() const { return MainFileName; }
/// \brief Set the main file name and override the default.
void setMainFileName(StringRef S) { MainFileName = S.str(); }
void setMainFileName(StringRef S) { MainFileName = S; }
/// GetDwarfFile - creates an entry in the dwarf file and directory tables.
unsigned GetDwarfFile(StringRef Directory, StringRef FileName,