summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2019-08-30 09:51:02 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2019-08-30 09:51:02 +0000
commit09e4ac1a4da5037bc381a3c1233c3323f4bc7240 (patch)
treebc68bd6f7292de5d6607a03d221f7ea8e9593d4f
parent84b4c4a495f88fc91783e18c0cea9ee381c5266a (diff)
downloadbcm5719-llvm-09e4ac1a4da5037bc381a3c1233c3323f4bc7240.tar.gz
bcm5719-llvm-09e4ac1a4da5037bc381a3c1233c3323f4bc7240.zip
[NFC] SCEVExpander: add SetCurrentDebugLocation() / getCurrentDebugLocation() wrappers
Summary: The internal `Builder` is private, which means there is currently no way to set the debuginfo locations for `SCEVExpander`. This only adds the wrappers, but does not use them anywhere. Reviewers: mkazantsev, sanjoy, gberry, jyknight, dneilson Reviewed By: sanjoy Subscribers: javed.absar, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D61007 llvm-svn: 370453
-rw-r--r--llvm/include/llvm/Analysis/ScalarEvolutionExpander.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/llvm/include/llvm/Analysis/ScalarEvolutionExpander.h b/llvm/include/llvm/Analysis/ScalarEvolutionExpander.h
index a519f93216b..ce98a145fe0 100644
--- a/llvm/include/llvm/Analysis/ScalarEvolutionExpander.h
+++ b/llvm/include/llvm/Analysis/ScalarEvolutionExpander.h
@@ -275,8 +275,16 @@ namespace llvm {
/// 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
OpenPOWER on IntegriCloud