projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c4fc58
)
[docs] Recommend dropLocation() over setDebugLoc(DebugLoc())
author
Vedant Kumar
<vsk@apple.com>
Wed, 30 Sep 2020 00:07:06 +0000
(17:07 -0700)
committer
Vedant Kumar
<vsk@apple.com>
Wed, 30 Sep 2020 00:07:14 +0000
(17:07 -0700)
llvm/docs/HowToUpdateDebugInfo.rst
patch
|
blob
|
history
diff --git
a/llvm/docs/HowToUpdateDebugInfo.rst
b/llvm/docs/HowToUpdateDebugInfo.rst
index
3283bfd
..
7df2a8a
100644
(file)
--- a/
llvm/docs/HowToUpdateDebugInfo.rst
+++ b/
llvm/docs/HowToUpdateDebugInfo.rst
@@
-117,7
+117,7
@@
When to drop an instruction location
A transformation should drop debug locations if the rules for
:ref:`preserving<WhenToPreserveLocation>` and
:ref:`merging<WhenToMergeLocation>` debug locations do not apply. The API to
-use is ``Instruction::
setDebugLoc
()``.
+use is ``Instruction::
dropLocation
()``.
The purpose of this rule is to prevent erratic or misleading single-stepping
behavior in situations in which an instruction has no clear, unambiguous