From ccc588e0044348edada8a0cc2cb2af5bfe2cd9b3 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Tue, 14 Apr 2015 17:13:10 +0000 Subject: [RuntimeDyld] Make SectionEntry's Name field a std::string. StringRef is unsafe here, since SectionEntry instances can outlive the ObjectFile instances they are created from. llvm-svn: 234910 --- llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/ExecutionEngine') diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h index e866c40d10b..ee51a754ead 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h @@ -52,7 +52,7 @@ class Twine; class SectionEntry { public: /// Name - section name. - StringRef Name; + std::string Name; /// Address - address in the linker's memory where the section resides. uint8_t *Address; -- cgit v1.2.3