From 419e5ffe4ade7ddd95e4c25c7fb98ba607678554 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 14 Mar 2014 19:53:39 +0000 Subject: [PATCH] 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 --- include/llvm/MC/MCContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h index 08ece2b4c48..b3df2252109 100644 --- a/include/llvm/MC/MCContext.h +++ b/include/llvm/MC/MCContext.h @@ -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, -- 2.34.1