summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-10-01 21:32:12 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-10-01 21:32:12 +0000
commit9affbbaac01eda102282c9f3cdbd4eac762967ff (patch)
treedcf86ba937cf08895337f3920a5faf1077fd8914 /llvm/lib
parent1b42bde30d1ad0079ece80077eb92f70e3e6c589 (diff)
downloadbcm5719-llvm-9affbbaac01eda102282c9f3cdbd4eac762967ff.tar.gz
bcm5719-llvm-9affbbaac01eda102282c9f3cdbd4eac762967ff.zip
Revert "DIBuilder: Remove dead code"
This reverts commit r218820. It turns out that Adrian has an outstanding SROA patch that uses this. I've updated it to forward to `createExpression()`. llvm-svn: 218828
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/DIBuilder.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp
index 743886946fc..950c5d237e4 100644
--- a/llvm/lib/IR/DIBuilder.cpp
+++ b/llvm/lib/IR/DIBuilder.cpp
@@ -1056,6 +1056,12 @@ DIExpression DIBuilder::createExpression(ArrayRef<int64_t> Addr) {
return DIExpression(MDNode::get(VMContext, Elts));
}
+DIExpression DIBuilder::createPieceExpression(unsigned OffsetInBytes,
+ unsigned SizeInBytes) {
+ int64_t Addr[] = {dwarf::DW_OP_piece, OffsetInBytes, SizeInBytes};
+ return createExpression(Addr);
+}
+
/// createFunction - Create a new descriptor for the specified function.
/// FIXME: this is added for dragonegg. Once we update dragonegg
/// to call resolve function, this will be removed.
OpenPOWER on IntegriCloud