1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/include/llvm/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
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
ConstantPools.h
MachineLocation.h
MCAsmBackend.h Remove MCAsmInfo.h include from TargetOptions.h 2016-07-27 16:03:57 +00:00
MCAsmInfo.h 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
MCAsmInfoCOFF.h
MCAsmInfoDarwin.h
MCAsmInfoELF.h
MCAsmLayout.h
MCAssembler.h Use the range variant of find instead of unpacking begin/end 2016-08-11 22:21:41 +00:00
MCCodeEmitter.h
MCCodeView.h
MCContext.h Add support for allowing us to create uniquely identified "COMDAT" or "ELF 2016-07-01 06:07:38 +00:00
MCDirectives.h
MCDwarf.h
MCELFObjectWriter.h Prune some includes from headers and sink some inline functions 2016-06-22 23:23:08 +00:00
MCELFStreamer.h
MCExpr.h [mips] Use MipsMCExpr instead of MCSymbolRefExpr for all relocations. 2016-05-03 13:35:44 +00:00
MCFixedLenDisassembler.h
MCFixup.h
MCFixupKindInfo.h
MCFragment.h
MCInst.h
MCInstBuilder.h
MCInstPrinter.h
MCInstrAnalysis.h
MCInstrDesc.h
MCInstrInfo.h
MCInstrItineraries.h
MCLabel.h
MCLinkerOptimizationHint.h Prune some includes from headers and sink some inline functions 2016-06-22 23:23:08 +00:00
MCMachObjectWriter.h
MCObjectFileInfo.h Apply most suggestions of clang-tidy's performance-unnecessary-value-param 2016-06-08 19:09:22 +00:00
MCObjectStreamer.h Add a using declaration so that the overrides don't hide some of the 2016-06-11 08:12:17 +00:00
MCObjectWriter.h
MCRegisterInfo.h Avoid accessing LLVM/DWARF register mappings if undefined 2016-08-12 23:12:59 +00:00
MCSchedule.h
MCSection.h
MCSectionCOFF.h [MC] Create unique .pdata sections for every .text section 2016-05-02 23:22:18 +00:00
MCSectionELF.h Recommit 270977 - [llvm-mc] - Teach llvm-mc to generate zlib styled compression sections. 2016-05-27 12:27:32 +00:00
MCSectionMachO.h
MCStreamer.h Provide support for preserving assembly comments 2016-07-11 12:42:14 +00:00
MCSubtargetInfo.h
MCSymbol.h Use the same underlying type for bitfields 2016-06-24 04:05:25 +00:00
MCSymbolCOFF.h
MCSymbolELF.h
MCSymbolMachO.h Add missing include. Should fix modules builds. 2016-06-23 07:30:12 +00:00
MCTargetOptions.h Remove MCAsmInfo.h include from TargetOptions.h 2016-07-27 16:03:57 +00:00
MCTargetOptionsCommandFlags.h
MCValue.h
MCWin64EH.h
MCWinCOFFObjectWriter.h
MCWinCOFFStreamer.h
MCWinEH.h [MC] Create unique .pdata sections for every .text section 2016-05-02 23:22:18 +00:00
SectionKind.h
StringTableBuilder.h Make StringTableBuilder to cache hash values. 2016-05-06 00:51:58 +00:00
SubtargetFeature.h