summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2015-04-14 17:13:10 +0000
committerLang Hames <lhames@gmail.com>2015-04-14 17:13:10 +0000
commitccc588e0044348edada8a0cc2cb2af5bfe2cd9b3 (patch)
tree9d31f3b27f6aceb53833014c6469d0104be5047b /llvm/lib/ExecutionEngine
parent5557a0e688a9a04f7d12021577b87815f0c94051 (diff)
downloadbcm5719-llvm-ccc588e0044348edada8a0cc2cb2af5bfe2cd9b3.tar.gz
bcm5719-llvm-ccc588e0044348edada8a0cc2cb2af5bfe2cd9b3.zip
[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
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud