[llvm] f71849c - [docs] Recommend dropLocation() over setDebugLoc(DebugLoc())

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 29 17:07:24 PDT 2020


Author: Vedant Kumar
Date: 2020-09-29T17:07:14-07:00
New Revision: f71849c74ed58e5d9ed3681cc6294128098012dc

URL: https://github.com/llvm/llvm-project/commit/f71849c74ed58e5d9ed3681cc6294128098012dc
DIFF: https://github.com/llvm/llvm-project/commit/f71849c74ed58e5d9ed3681cc6294128098012dc.diff

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

Added: 
    

Modified: 
    llvm/docs/HowToUpdateDebugInfo.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/HowToUpdateDebugInfo.rst b/llvm/docs/HowToUpdateDebugInfo.rst
index 3283bfd89339..7df2a8a25827 100644
--- 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


        


More information about the llvm-commits mailing list