1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

[docs] Recommend dropLocation() over setDebugLoc(DebugLoc())

This commit is contained in:
Vedant Kumar 2020-09-29 17:07:06 -07:00
parent 2b65358c22
commit 32d1049161

View File

@ -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