projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66c643e
)
[llvm-readobj/MachO] Ensure we always have valid CmdName/SegmentName.
author
Davide Italiano
<davide@freebsd.org>
Tue, 22 Sep 2015 02:14:43 +0000
(
02:14
+0000)
committer
Davide Italiano
<davide@freebsd.org>
Tue, 22 Sep 2015 02:14:43 +0000
(
02:14
+0000)
Otherwise we might end up printing garbage while dumping.
Differential Revision: http://reviews.llvm.org/D13041
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248239
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-readobj/MachODumper.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-readobj/MachODumper.cpp
b/tools/llvm-readobj/MachODumper.cpp
index 177f79fb9c194477860a4cd9e32e912ef49826a2..ab77fdcf136613f3c2df6822aa631f7561902fc5 100644
(file)
--- a/
tools/llvm-readobj/MachODumper.cpp
+++ b/
tools/llvm-readobj/MachODumper.cpp
@@
-267,8
+267,8
@@
namespace {
};
struct MachOSegment {
-
StringRef
CmdName;
-
StringRef
SegName;
+
std::string
CmdName;
+
std::string
SegName;
uint64_t cmdsize;
uint64_t vmaddr;
uint64_t vmsize;