llvm-project/llvm/lib/CodeGen/AsmPrinter
Keith Walker 94fac097ad [DebugInfo][ARM] Not readonly check for RWPI globals
When compiling for the RWPI relocation model [1], the debug information
is wrong for readonly global variables.

Writable global variables are accessed by the static base register (R9
on ARM) in the RWPI relocation model.  This is being correctly generated

Readonly global variables are not accessed by the static base register
in the RWPI relocation model. This case is incorrectly generating the
same debugging information as for writable global variables.

References:
[1] ARM Read-Write Position Independence: https://github.com/ARM-software/abi-aa/blob/main/aapcs32/aapcs32.rst#read-write-position-independence-rwpi

Differential Revision: https://reviews.llvm.org/D126361
2022-06-15 11:52:12 +01:00
..
AIXException.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
ARMException.cpp [MC] De-capitalize MCStreamer functions 2022-06-07 00:31:02 -07:00
AccelTable.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
AddressPool.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
AddressPool.h
AsmPrinter.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
AsmPrinterDwarf.cpp [MC] Lower case the first letter of EmitCOFF* EmitWin* EmitCV*. NFC 2022-05-26 00:14:08 -07:00
AsmPrinterInlineAsm.cpp [CodeGen] Apply clang-tidy fixes for readability-redundant-smartptr-get (NFC) 2022-03-20 23:11:06 -07:00
ByteStreamer.h [DwarfDebug] Restore code that make comments stay aligned in DwarfDebug::emitDebugLocEntry 2022-01-18 09:46:03 +01:00
CMakeLists.txt
CodeViewDebug.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
CodeViewDebug.h [CodeView] Combine variable def ranges that are continuous. 2022-05-20 12:12:14 -07:00
DIE.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
DIEHash.cpp Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
DIEHash.h DebugInfo: Don't hash DIE offsets before they're computed 2021-12-25 16:09:12 -08:00
DIEHashAttributes.def
DbgEntityHistoryCalculator.cpp Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
DebugHandlerBase.cpp Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
DebugLocEntry.h [AsmPrinter] DebugLocEntry::dump() - Use const-ref iterator in for-range loop. NFCI. 2021-09-17 12:11:54 +01:00
DebugLocStream.cpp
DebugLocStream.h
DwarfCFIException.cpp Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
DwarfCompileUnit.cpp [DebugInfo][ARM] Not readonly check for RWPI globals 2022-06-15 11:52:12 +01:00
DwarfCompileUnit.h Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
DwarfDebug.cpp [PS5] Default to 'sce' debugger tuning 2022-06-14 15:28:28 -07:00
DwarfDebug.h DebugInfo: Don't allow type units to references types in the CU 2022-03-25 23:49:03 +00:00
DwarfException.h [CodeGen] Use default member initialization (NFC) 2022-01-30 12:32:51 -08:00
DwarfExpression.cpp [DWARF][FIX] Handle the use of multiple registers gracefully 2022-04-15 13:43:50 -05:00
DwarfExpression.h [DwarfDebug] Refuse to emit DW_OP_LLVM_arg values wider than 64 bits 2021-12-10 09:33:27 -08:00
DwarfFile.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
DwarfFile.h Revert "[DwarfDebug] Support emitting function-local declaration for a lexical block" & dependent patches 2021-12-24 00:47:04 +02:00
DwarfStringPool.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
DwarfStringPool.h
DwarfUnit.cpp [DebugInfo] Add a TargetFuncName field in DISubprogram for 2022-04-15 16:38:23 -04:00
DwarfUnit.h [CodeGen] Use default member initialization (NFC) 2022-01-30 12:32:51 -08:00
EHStreamer.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
EHStreamer.h
ErlangGCPrinter.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
OcamlGCPrinter.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
PseudoProbePrinter.cpp Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
PseudoProbePrinter.h [llvm] Remove unused forward declarations (NFC) 2022-01-07 20:00:34 -08:00
WasmException.cpp Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
WasmException.h Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
WinCFGuard.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
WinCFGuard.h
WinException.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
WinException.h Fix SEH table addresses for Windows 2021-08-20 22:32:12 +03:00