summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-02-09 19:19:55 +0000
committerVedant Kumar <vsk@apple.com>2018-02-09 19:19:55 +0000
commit04386d8e3de6c9fe79d0f911841ff94368bd61cc (patch)
treeb2a5d6cbcfc7acb0dcd25730e737ea7177d1ea9f /llvm/include
parent9b48e8d233e9013dc6a38e628350c6d76c46a58a (diff)
downloadbcm5719-llvm-04386d8e3de6c9fe79d0f911841ff94368bd61cc.tar.gz
bcm5719-llvm-04386d8e3de6c9fe79d0f911841ff94368bd61cc.zip
[Utils] Salvage debug info from dead 'or' instructions
Extend salvageDebugInfo to preserve the debug info from a dead 'or' with a constant. Patch by Ismail Badawi! Differential Revision: https://reviews.llvm.org/D43129 llvm-svn: 324764
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/IR/DebugInfoMetadata.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/DebugInfoMetadata.h b/llvm/include/llvm/IR/DebugInfoMetadata.h
index 9bcdaa81e66..591dc84fc02 100644
--- a/llvm/include/llvm/IR/DebugInfoMetadata.h
+++ b/llvm/include/llvm/IR/DebugInfoMetadata.h
@@ -2340,6 +2340,12 @@ public:
int64_t Offset = 0, bool DerefAfter = false,
bool StackValue = false);
+ /// Prepend \p DIExpr with the given opcodes and optionally turn it into a
+ /// stack value.
+ static DIExpression *doPrepend(const DIExpression *DIExpr,
+ SmallVectorImpl<uint64_t> &Ops,
+ bool StackValue = false);
+
/// Create a DIExpression to describe one part of an aggregate variable that
/// is fragmented across multiple Values. The DW_OP_LLVM_fragment operation
/// will be appended to the elements of \c Expr. If \c Expr already contains
OpenPOWER on IntegriCloud