diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-10-01 21:32:12 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-10-01 21:32:12 +0000 |
| commit | 9affbbaac01eda102282c9f3cdbd4eac762967ff (patch) | |
| tree | dcf86ba937cf08895337f3920a5faf1077fd8914 /llvm/lib/IR/DIBuilder.cpp | |
| parent | 1b42bde30d1ad0079ece80077eb92f70e3e6c589 (diff) | |
| download | bcm5719-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/IR/DIBuilder.cpp')
| -rw-r--r-- | llvm/lib/IR/DIBuilder.cpp | 6 |
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. |

