diff options
author | Lang Hames <lhames@gmail.com> | 2015-10-29 03:57:31 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2015-10-29 03:57:31 +0000 |
commit | ac416d42fc24c09d1fb5ab502b247d9ecaff1aec (patch) | |
tree | 2fbb919bd1b1566db25f293e26f9e4d6c8b454a6 | |
parent | dc7580aa8894fcdf8af0a821b35758a4c6a640d2 (diff) | |
download | llvm-ac416d42fc24c09d1fb5ab502b247d9ecaff1aec.zip llvm-ac416d42fc24c09d1fb5ab502b247d9ecaff1aec.tar.gz llvm-ac416d42fc24c09d1fb5ab502b247d9ecaff1aec.tar.bz2 |
[lld][MachO] Use a std::string rather than a StringRef for the section name in
MachODefinedCustomSectionAtom.
The section names for these atoms are initialized from temporaries (e.g.
segName + "/" + sectName), so we can't use StringRef here.
llvm-svn: 251610
-rw-r--r-- | lld/lib/ReaderWriter/MachO/Atoms.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/MachO/Atoms.h b/lld/lib/ReaderWriter/MachO/Atoms.h index e199cf6..a143df2 100644 --- a/lld/lib/ReaderWriter/MachO/Atoms.h +++ b/lld/lib/ReaderWriter/MachO/Atoms.h @@ -125,7 +125,7 @@ public: ArrayRef<uint8_t> rawContent() const override { return ArrayRef<uint8_t>(); } private: - const StringRef _name; + const std::string _name; const Scope _scope; const uint64_t _size; const DefinedAtom::Alignment _align; |