[llvm] r234910 - [RuntimeDyld] Make SectionEntry's Name field a std::string.
Lang Hames
lhames at gmail.com
Tue Apr 14 10:13:10 PDT 2015
Author: lhames
Date: Tue Apr 14 12:13:10 2015
New Revision: 234910
URL: http://llvm.org/viewvc/llvm-project?rev=234910&view=rev
Log:
[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.
Modified:
llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h?rev=234910&r1=234909&r2=234910&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h Tue Apr 14 12:13:10 2015
@@ -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;
More information about the llvm-commits
mailing list