mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 20:20:03 +00:00
Remove unnecessary StringRef::str() call where an implicit conversion works just fine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203960 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2bc7715df9
commit
419e5ffe4a
@ -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
Block a user