summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/Scalarizer.cpp
diff options
context:
space:
mode:
authorAndrew Wilkins <axwalk@gmail.com>2017-03-31 04:59:57 +0000
committerAndrew Wilkins <axwalk@gmail.com>2017-03-31 04:59:57 +0000
commitdc0fe7abfc53a2fc77569b99888b7fd4b23e8e96 (patch)
tree29f85fb46a0253e78c1ec1dc3c39e57bccd8a804 /llvm/lib/Transforms/Scalar/Scalarizer.cpp
parent7b30f16c9ffa5e6a3731febd6009b2ee81ebf430 (diff)
downloadbcm5719-llvm-dc0fe7abfc53a2fc77569b99888b7fd4b23e8e96.tar.gz
bcm5719-llvm-dc0fe7abfc53a2fc77569b99888b7fd4b23e8e96.zip
Go binding: Add GetCurrentDebugLocation to obtain debug location from builder
Summary: Currently Go binding only has SetCurrentDebugLocation method. I added GetCurrentDebugLocation method to IRBuilder instance. I added this because I want to save current debug location, change debug location temporary and restore the saved one finally. This is useful when source location jumps and goes back after while LLVM IR generation. I also added tests for this to ir_test.go. I confirmed that all test passed with this patch based on r298890 Patch by Ryuichi Hayashida! Differential Revision: https://reviews.llvm.org/D31415 llvm-svn: 299185
Diffstat (limited to 'llvm/lib/Transforms/Scalar/Scalarizer.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud