[PATCH] D45477: AMDGPU/MC: Allow disassembling without symbol info

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 10 08:52:26 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL329715: AMDGPU/MC: Allow disassembling without symbol info (authored by nha, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D45477

Files:
  llvm/trunk/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp


Index: llvm/trunk/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
===================================================================
--- llvm/trunk/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
+++ llvm/trunk/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
@@ -882,6 +882,9 @@
   }
 
   auto *Symbols = static_cast<SectionSymbolsTy *>(DisInfo);
+  if (!Symbols)
+    return false;
+
   auto Result = std::find_if(Symbols->begin(), Symbols->end(),
                              [Value](const SymbolInfoTy& Val) {
                                 return std::get<0>(Val) == static_cast<uint64_t>(Value)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45477.141864.patch
Type: text/x-patch
Size: 622 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180410/f6b70f12/attachment.bin>


More information about the llvm-commits mailing list