Remove the obsolete offset parameter from @llvm.dbg.value

There is no situation where this rarely-used argument cannot be
substituted with a DIExpression and removing it allows us to simplify
the DWARF backend. Note that this patch does not yet remove any of
the newly dead code.

rdar://problem/33580047
Differential Revision: https://reviews.llvm.org/D35951

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309426 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Adrian Prantl
2017-07-28 20:21:02 +00:00
parent 2976ab9c15
commit 5d0334a48c
173 changed files with 713 additions and 680 deletions
+5 -6
View File
@@ -207,14 +207,13 @@ description of the variable. The third argument is a `complex expression
.. code-block:: llvm
void @llvm.dbg.value(metadata, i64, metadata, metadata)
void @llvm.dbg.value(metadata, metadata, metadata)
This intrinsic provides information when a user source variable is set to a new
value. The first argument is the new value (wrapped as metadata). The second
argument is the offset in the user source variable where the new value is
written. The third argument is a `local variable
<LangRef.html#dilocalvariable>`_ containing a description of the variable. The
fourth argument is a `complex expression <LangRef.html#diexpression>`_.
value. The first argument is the new value (wrapped as metadata). The third
argument is a `local variable <LangRef.html#dilocalvariable>`_ containing a
description of the variable. The fourth argument is a `complex expression
<LangRef.html#diexpression>`_.
Object lifetimes and scoping
============================