llvm-6502/lib
Duncan P. N. Exon Smith 01a8dc8ca6 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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240243 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-21 16:50:43 +00:00
..
Analysis [CallGraph] Given -print-callgraph a stable printing order. 2015-06-19 23:20:31 +00:00
AsmParser Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
Bitcode Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
CodeGen AsmPrinter: Rewrite initialization of DbgVariable, NFC 2015-06-21 16:50:43 +00:00
DebugInfo Try to fix generation of LLVMExports.cmake under Visual Studio. 2015-06-19 21:50:27 +00:00
ExecutionEngine [MCJIT] Add a FindGlobalVariableNamed utility 2015-06-20 00:55:58 +00:00
Fuzzer
IR Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
IRReader
LibDriver ArrayRef-ify libDriverMain 2015-06-21 06:31:56 +00:00
LineEditor
Linker Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
LTO
MC Update ELFObjectWriter::reset() following r238073. 2015-06-20 11:54:32 +00:00
Object Make getRelocationSection MachO only. 2015-06-19 17:54:28 +00:00
Option Devirtualize ArgList's dtor now that -Wvirtual-dtor and C++11 allow a better way to describe this situation 2015-06-21 06:51:35 +00:00
Passes
ProfileData Revert "InstrProf: When reading, copy the data instead of taking a reference. NFC" 2015-06-20 01:37:56 +00:00
Support Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
TableGen Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
Target [X86][SSE] Fix PerformSExtCombine bug that accessed the wrong return value of an aggregate type. 2015-06-20 16:19:24 +00:00
Transforms [SwitchLowering] Remove quadratic vector removal. 2015-06-20 15:59:34 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile