[PATCH] D61007: [NFC] SCEVExpander: add SetCurrentDebugLocation() / getCurrentDebugLocation() wrappers

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 30 02:56:13 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL370453: [NFC] SCEVExpander: add SetCurrentDebugLocation() / getCurrentDebugLocation()… (authored by lebedevri, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D61007?vs=216779&id=218054#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61007/new/

https://reviews.llvm.org/D61007

Files:
  llvm/trunk/include/llvm/Analysis/ScalarEvolutionExpander.h


Index: llvm/trunk/include/llvm/Analysis/ScalarEvolutionExpander.h
===================================================================
--- llvm/trunk/include/llvm/Analysis/ScalarEvolutionExpander.h
+++ llvm/trunk/include/llvm/Analysis/ScalarEvolutionExpander.h
@@ -275,8 +275,16 @@
 
     /// Clear the current insertion point. This is useful if the instruction
     /// that had been serving as the insertion point may have been deleted.
-    void clearInsertPoint() {
-      Builder.ClearInsertionPoint();
+    void clearInsertPoint() { Builder.ClearInsertionPoint(); }
+
+    /// Set location information used by debugging information.
+    void SetCurrentDebugLocation(DebugLoc L) {
+      Builder.SetCurrentDebugLocation(std::move(L));
+    }
+
+    /// Get location information used by debugging information.
+    const DebugLoc &getCurrentDebugLocation() const {
+      return Builder.getCurrentDebugLocation();
     }
 
     /// Return true if the specified instruction was inserted by the code


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61007.218054.patch
Type: text/x-patch
Size: 1002 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190830/dd0b0c22/attachment.bin>


More information about the llvm-commits mailing list