summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-07-28 20:21:02 +0000
committerAdrian Prantl <aprantl@apple.com>2017-07-28 20:21:02 +0000
commitabe04759a6f50c6006db8b2990de47e973ad127a (patch)
tree46928903d2e66b0381635a531b82df7f5a0d0083 /llvm/docs
parente109655c902f6e381348c5874512b4897bedff8f (diff)
downloadbcm5719-llvm-abe04759a6f50c6006db8b2990de47e973ad127a.tar.gz
bcm5719-llvm-abe04759a6f50c6006db8b2990de47e973ad127a.zip
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 llvm-svn: 309426
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/LangRef.rst2
-rw-r--r--llvm/docs/SourceLevelDebugging.rst11
2 files changed, 6 insertions, 7 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 44efc149806..e745567c357 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -4018,7 +4018,7 @@ function is using two metadata arguments:
.. code-block:: llvm
- call void @llvm.dbg.value(metadata !24, i64 0, metadata !25)
+ call void @llvm.dbg.value(metadata !24, metadata !25, metadata !26)
Metadata can be attached to an instruction. Here metadata ``!21`` is attached
to the ``add`` instruction using the ``!dbg`` identifier:
diff --git a/llvm/docs/SourceLevelDebugging.rst b/llvm/docs/SourceLevelDebugging.rst
index a9f5c3a0814..ee4c5ce8bce 100644
--- a/llvm/docs/SourceLevelDebugging.rst
+++ b/llvm/docs/SourceLevelDebugging.rst
@@ -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
============================
OpenPOWER on IntegriCloud