1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 13:33:37 +02:00
llvm-mirror/lib/MC
Dominic Chen aeeb84515c Avoid accessing LLVM/DWARF register mappings if undefined
Summary:
If the backend does not define LLVM/DWARF register mappings, the associated
variables are undefined since the map initializer is called by auto-generated
TableGen routines. This patch initializes the pointers and sizes to nullptr
and zero, respectively, and checks that they are valid before searching
for a mapping.

Reviewers: grosbach, dschuff

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D23458

llvm-svn: 278574
2016-08-12 23:12:59 +00:00
..
MCDisassembler Apply clang-tidy's misc-move-constructor-init throughout LLVM. 2016-05-27 14:27:24 +00:00
MCParser Re-commit r277988: [mips][ias] Fix all the hacks related to MIPS-specific unary operators (%hi/%lo/%gp_rel/etc.). 2016-08-08 11:50:25 +00:00
CMakeLists.txt Delete MCCodeGenInfo. 2016-06-30 18:25:11 +00:00
ConstantPools.cpp Apply clang-tidy's modernize-loop-convert to lib/MC. 2016-06-26 14:49:00 +00:00
ELFObjectWriter.cpp Delete some dead code. 2016-06-21 19:48:12 +00:00
LLVMBuild.txt
MachObjectWriter.cpp
MCAsmBackend.cpp
MCAsmInfo.cpp [MC] Delete use of *structors_used. 2016-08-08 03:30:01 +00:00
MCAsmInfoCOFF.cpp
MCAsmInfoDarwin.cpp [MC] Delete use of *structors_used. 2016-08-08 03:30:01 +00:00
MCAsmInfoELF.cpp
MCAsmStreamer.cpp [MC] When emitting output hash comments always use standard line comment seperator 2016-07-29 14:42:00 +00:00
MCAssembler.cpp [MC] Don't crash when trying to emit a relocation against .bss. 2016-07-26 18:16:33 +00:00
MCCodeEmitter.cpp
MCCodeView.cpp [codeview] Shrink inlined call site line info tables 2016-07-14 23:47:15 +00:00
MCContext.cpp Add support for allowing us to create uniquely identified "COMDAT" or "ELF 2016-07-01 06:07:38 +00:00
MCDwarf.cpp Apply clang-tidy's modernize-loop-convert to lib/MC. 2016-06-26 14:49:00 +00:00
MCELFObjectTargetWriter.cpp
MCELFStreamer.cpp Fix instance of -Wdelete-incomplete 2016-06-22 23:25:26 +00:00
MCExpr.cpp
MCFragment.cpp
MCInst.cpp
MCInstPrinter.cpp
MCInstrAnalysis.cpp
MCInstrDesc.cpp
MCLabel.cpp
MCLinkerOptimizationHint.cpp Apply clang-tidy's modernize-loop-convert to lib/MC. 2016-06-26 14:49:00 +00:00
MCMachObjectTargetWriter.cpp
MCMachOStreamer.cpp
MCNullStreamer.cpp
MCObjectFileInfo.cpp [mips] Set Personality and LSDA encoding for FreeBSD 2016-08-04 15:36:03 +00:00
MCObjectStreamer.cpp Fix branch relaxation in 16-bit mode. 2016-07-11 14:23:53 +00:00
MCObjectWriter.cpp
MCRegisterInfo.cpp Avoid accessing LLVM/DWARF register mappings if undefined 2016-08-12 23:12:59 +00:00
MCSchedule.cpp
MCSection.cpp
MCSectionCOFF.cpp
MCSectionELF.cpp
MCSectionMachO.cpp
MCStreamer.cpp Provide support for preserving assembly comments 2016-07-11 12:42:14 +00:00
MCSubtargetInfo.cpp
MCSymbol.cpp
MCSymbolELF.cpp
MCTargetOptions.cpp Initialize PreserveAsmComments in MCTargetOptions 2016-07-27 19:19:13 +00:00
MCValue.cpp
MCWin64EH.cpp
MCWinEH.cpp
StringTableBuilder.cpp
SubtargetFeature.cpp
WinCOFFObjectWriter.cpp Apply clang-tidy's modernize-loop-convert to lib/MC. 2016-06-26 14:49:00 +00:00
WinCOFFStreamer.cpp [MC, COFF] Permit a variable to be redefined 2016-07-08 21:54:16 +00:00