forked from OSchip/llvm-project
Remove unnecessary StringRef::str() call where an implicit conversion works just fine.
llvm-svn: 203960
This commit is contained in:
parent
ba0238fa95
commit
c110d4d57c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue