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
This commit is contained in:
Alexey Samsonov
2012-11-12 14:25:36 +00:00
parent 30d8f0e977
commit 4c0ae9066f
5 changed files with 30 additions and 22 deletions

View File

@ -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";