aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2015-10-29 03:57:31 +0000
committerLang Hames <lhames@gmail.com>2015-10-29 03:57:31 +0000
commitac416d42fc24c09d1fb5ab502b247d9ecaff1aec (patch)
tree2fbb919bd1b1566db25f293e26f9e4d6c8b454a6
parentdc7580aa8894fcdf8af0a821b35758a4c6a640d2 (diff)
downloadllvm-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.h2
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;