Go to file
Duncan P. N. Exon Smith e6cc531b1a 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
clang [Codegen] Don't crash if destructor is not accessible. 2015-06-21 16:33:50 +00:00
clang-tools-extra Update for ParseARgs ArrayRef-ification 2015-06-21 06:58:19 +00:00
compiler-rt Add -flto to clang flags for cfi tests. 2015-06-19 19:48:40 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Use a more accurate implementation for exp 2015-05-13 03:55:09 +00:00
libcxx Fix illegal chars that snuck into <memory> 2015-06-19 19:32:06 +00:00
libcxxabi fallback_malloc: silence conversion warning (NFC) 2015-06-03 17:25:35 +00:00
libunwind Code cleanup: Reindent statements. 2015-05-30 14:00:39 +00:00
lld ArrayRef-ify Driver::parse and related functions. 2015-06-21 06:32:10 +00:00
lldb Fix the MacOSX build to include the Mips64 ABI plug-in. 2015-06-19 20:08:36 +00:00
llgo [llgo] cmd/llgoi: use line editor 2015-05-23 15:16:09 +00:00
llvm AsmPrinter: Rewrite initialization of DbgVariable, NFC 2015-06-21 16:50:43 +00:00
openmp Have CMake error out on Windows when user wants OMPT support 2015-06-17 15:43:34 +00:00
polly Fix the clang -Werror build (-Wbraced-scalar-init) 2015-06-19 20:07:18 +00:00