OSDN Git Service

[LLVM-C] Add Bindings to Access an Instruction's DebugLoc
authorRobert Widmann <devteam.codafi@gmail.com>
Tue, 9 Apr 2019 22:27:51 +0000 (22:27 +0000)
committerRobert Widmann <devteam.codafi@gmail.com>
Tue, 9 Apr 2019 22:27:51 +0000 (22:27 +0000)
commit5aa20826587e3ca5917481447b05f7d8b50ac7ec
tree1fdbac001b50c15c59fdc5f1a6c938acfa3c4338
parentf16fe4c53fd533288fafd8f40a94a002eea1fd1d
[LLVM-C] Add Bindings to Access an Instruction's DebugLoc

Summary: Provide direct accessors to supplement LLVMSetInstDebugLocation.  In addition, properly accept and return the NULL location.  The old accessors provided no way to do this, so the current debug location cannot currently be cleared.

Reviewers: whitequark, deadalnix

Reviewed By: whitequark

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D60481

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358038 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm-c/DebugInfo.h
lib/IR/DebugInfo.cpp