diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-06 10:58:06 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-06 10:58:06 +0000 |
commit | de46a5b60ea8cf3db0b613172667a7038470c578 (patch) | |
tree | 0c5a62b287e4c2c693330584a8f1d6024defde66 /include/llvm/MC/MCSection.h | |
parent | d71e0318a7639a78ea87cc0f6eabf13358fd4c9e (diff) | |
download | external_llvm-de46a5b60ea8cf3db0b613172667a7038470c578.zip external_llvm-de46a5b60ea8cf3db0b613172667a7038470c578.tar.gz external_llvm-de46a5b60ea8cf3db0b613172667a7038470c578.tar.bz2 |
Pass StringRef by value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86251 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCSection.h')
-rw-r--r-- | include/llvm/MC/MCSection.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/MC/MCSection.h b/include/llvm/MC/MCSection.h index 9e07186..ceb6d27 100644 --- a/include/llvm/MC/MCSection.h +++ b/include/llvm/MC/MCSection.h @@ -51,13 +51,13 @@ namespace llvm { /// of a syntactic one. bool IsDirective; - MCSectionCOFF(const StringRef &name, bool isDirective, SectionKind K) + MCSectionCOFF(StringRef name, bool isDirective, SectionKind K) : MCSection(K), Name(name), IsDirective(isDirective) { } public: - static MCSectionCOFF *Create(const StringRef &Name, bool IsDirective, - SectionKind K, MCContext &Ctx); + static MCSectionCOFF *Create(StringRef Name, bool IsDirective, + SectionKind K, MCContext &Ctx); const std::string &getName() const { return Name; } bool isDirective() const { return IsDirective; } |