summaryrefslogtreecommitdiff
path: root/tools/llvm-dwarfdump
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-11-12 14:25:36 +0000
committerAlexey Samsonov <samsonov@google.com>2012-11-12 14:25:36 +0000
commit4c0ae9066fecbbd507162a880450641aa5c33098 (patch)
tree9fd68167d4944186f5015d3da5eec854da240b02 /tools/llvm-dwarfdump
parent30d8f0e9770db76f19273419c57fe112129b145a (diff)
downloadllvm-4c0ae9066fecbbd507162a880450641aa5c33098.tar.gz
llvm-4c0ae9066fecbbd507162a880450641aa5c33098.tar.bz2
llvm-4c0ae9066fecbbd507162a880450641aa5c33098.tar.xz
Fixup for r167558: Store raw pointer (instead of reference) to RelocMap in DIContext. This is needed to prevent crashes because of dangling reference if the clients don't provide RelocMap to DIContext constructor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-dwarfdump')
-rw-r--r--tools/llvm-dwarfdump/llvm-dwarfdump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
index e73300a0cd..c0e3491509 100644
--- a/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
+++ b/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
@@ -162,7 +162,7 @@ static void DumpInput(const StringRef &Filename) {
DebugLineSection,
DebugStringSection,
DebugRangesSection,
- RelocMap));
+ &RelocMap));
if (Address == -1ULL) {
outs() << Filename
<< ":\tfile format " << Obj->getFileFormatName() << "\n\n";