Go to file
Davide Italiano 744c3c327f [LoopDeletion] Update debug values after loop deletion.
When loops are deleted, we don't keep track of variables modified inside
the loops, so the DI will contain the wrong value for these.

e.g.

int b() {

int i;
for (i = 0; i < 2; i++)
  ;
patatino();
return a;
-> 6 patatino();

7     return a;
8   }
9   int main() { b(); }
(lldb) frame var i
(int) i = 0

We mark instead these values as unavailable inserting a
@llvm.dbg.value(undef to make sure we don't end up printing an incorrect
value in the debugger. We could consider doing something fancier,
for, e.g. constants, in the future.

PR39868.
rdar://problem/46418795)

Differential Revision: https://reviews.llvm.org/D55299

llvm-svn: 348988
2018-12-12 23:32:35 +00:00
clang Revert "Declares __cpu_model as dso local" 2018-12-12 22:39:51 +00:00
clang-tools-extra Add explicit dependency on clangSerialization after rC348911 2018-12-12 08:25:16 +00:00
compiler-rt [hwasan] Link ubsan_cxx to shared runtime library. 2018-12-12 22:56:00 +00:00
debuginfo-tests Set config.lit_tools_dir, which is needed by lit.llvm.initialize. 2018-11-06 21:54:27 +00:00
libclc travis: Add cmake build 2018-11-27 16:07:21 +00:00
libcxx [test] [depr.c.headers] XFAIL uchar.h on NetBSD 2018-12-12 20:51:46 +00:00
libcxxabi [libcxx] Remove bad_array_length 2018-11-29 19:44:57 +00:00
libunwind Avoid code duplication in the SEH version of UnwindCursor::getRegisterName. NFC. 2018-12-12 22:24:42 +00:00
lld Update for an llvm-dwarfdump change in output 2018-12-12 18:46:43 +00:00
lldb NFC: fix compiler warning about code never being executed when compiling on non windows platform. 2018-12-12 18:14:27 +00:00
llgo Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
llvm [LoopDeletion] Update debug values after loop deletion. 2018-12-12 23:32:35 +00:00
openmp [runtime] Disable KMP_HAVE_QUAD on NetBSD gcc 2018-12-11 19:02:14 +00:00
parallel-libs Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
polly [CMake] Fix generation of exported targets in build directory 2018-11-06 15:18:17 +00:00
README.md Update the project name in README.md 2018-10-19 00:03:01 +00:00

README.md

The LLVM Compiler Infrastructure

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.