diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-03-14 19:53:39 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-03-14 19:53:39 +0000 |
commit | 419e5ffe4ade7ddd95e4c25c7fb98ba607678554 (patch) | |
tree | 5ce496fe3a2b6c76620261c999e8f4114e660749 /include/llvm/MC/MCContext.h | |
parent | 2bc7715df95ccfa13745d4077df8414bc18cbb9c (diff) | |
download | llvm-419e5ffe4ade7ddd95e4c25c7fb98ba607678554.tar.gz llvm-419e5ffe4ade7ddd95e4c25c7fb98ba607678554.tar.bz2 llvm-419e5ffe4ade7ddd95e4c25c7fb98ba607678554.tar.xz |
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
Diffstat (limited to 'include/llvm/MC/MCContext.h')
-rw-r--r-- | include/llvm/MC/MCContext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h index 08ece2b4c4..b3df225210 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, |