1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 20:43:44 +02:00
llvm-mirror/lib/CodeGen/AsmPrinter
Duncan P. N. Exon Smith d2c6e427d5 AsmPrinter: Rewrite initialization of DbgVariable, NFC
There are three types of `DbgVariable`:
  - alloca variables, created based on the MMI table,
  - register variables, created based on DBG_VALUE instructions, and
  - optimized-out variables.

This commit reconfigures `DbgVariable` to make it easier to tell which
kind we have, and make initialization a little clearer.

For MMI/alloca variables, `FrameIndex.size()` must always equal
`Expr.size()`, and there shouldn't be an `MInsn`.  For register
variables (with a `MInsn`), `FrameIndex` must be empty, and `Expr`
should have 0 or 1 element depending on whether it has a complex
expression (registers with multiple locations use `DebugLocListIndex`).
Optimized-out variables shouldn't have any of these fields.

Moreover, this separates DBG_VALUE initialization until after the
variable is created, simplifying logic in a future commit that changes
`collectVariableInfo()` to stop creating empty .debug_loc entries/lists.

llvm-svn: 240243
2015-06-21 16:50:43 +00:00
..
AddressPool.cpp MC: Clean up MCExpr naming. NFC. 2015-05-30 01:25:56 +00:00
AddressPool.h Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
ARMException.cpp
AsmPrinter.cpp [CodeGen] Don't emit a random reference to the personality function 2015-06-18 18:31:46 +00:00
AsmPrinterDwarf.cpp Rename and improve emitSectionOffset. 2015-06-16 23:22:02 +00:00
AsmPrinterHandler.h
AsmPrinterInlineAsm.cpp MC: Add target hook to control symbol quoting 2015-06-09 00:31:39 +00:00
ByteStreamer.h Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
CMakeLists.txt Rename Win64Exception.(cpp|h) to WinException.(cpp|h) 2015-05-28 22:47:01 +00:00
DbgValueHistoryCalculator.cpp
DbgValueHistoryCalculator.h Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
DebugLocEntry.h Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
DebugLocStream.h Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
DIE.cpp Rename and improve emitSectionOffset. 2015-06-16 23:22:02 +00:00
DIEHash.cpp AsmPrinter: Stop exposing underlying DIE children list, NFC 2015-05-28 19:56:34 +00:00
DIEHash.h Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
DwarfAccelTable.cpp MC: Clean up MCExpr naming. NFC. 2015-05-30 01:25:56 +00:00
DwarfAccelTable.h Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
DwarfCFIException.cpp
DwarfCompileUnit.cpp AsmPrinter: Rewrite initialization of DbgVariable, NFC 2015-06-21 16:50:43 +00:00
DwarfCompileUnit.h Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
DwarfDebug.cpp AsmPrinter: Rewrite initialization of DbgVariable, NFC 2015-06-21 16:50:43 +00:00
DwarfDebug.h AsmPrinter: Rewrite initialization of DbgVariable, NFC 2015-06-21 16:50:43 +00:00
DwarfException.h
DwarfExpression.cpp Revert "[DWARF] Fix a few corner cases in expression emission" 2015-06-09 18:01:51 +00:00
DwarfExpression.h Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
DwarfFile.cpp Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
DwarfFile.h Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
DwarfStringPool.cpp AsmPrinter: Avoid creating symbols in DwarfStringPool 2015-05-24 16:58:59 +00:00
DwarfStringPool.h Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
DwarfUnit.cpp Rename and improve emitSectionOffset. 2015-06-16 23:22:02 +00:00
DwarfUnit.h Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
EHStreamer.cpp Move alignment from MCSectionData to MCSection. 2015-05-21 19:20:38 +00:00
EHStreamer.h Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
ErlangGCPrinter.cpp
LLVMBuild.txt
Makefile
OcamlGCPrinter.cpp MC: Clean up method names in MCContext. 2015-05-18 18:43:14 +00:00
WinCodeViewLineTables.cpp Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
WinCodeViewLineTables.h
WinException.cpp [WinEH] Put finally pointers in the handler scope table field 2015-06-11 23:37:18 +00:00
WinException.h Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00