OSDN Git Service

[LLVM-C] Correct The Current Debug Location Accessors
authorRobert Widmann <devteam.codafi@gmail.com>
Tue, 9 Apr 2019 22:31:56 +0000 (22:31 +0000)
committerRobert Widmann <devteam.codafi@gmail.com>
Tue, 9 Apr 2019 22:31:56 +0000 (22:31 +0000)
commit1642cf11e5c1bc91ebeb415277b8890c6d52a224
tree51138ea60004a1c306a4ce0e8586c21dd5f88de2
parent5aa20826587e3ca5917481447b05f7d8b50ac7ec
[LLVM-C] Correct The Current Debug Location Accessors

Summary: Deprecate the existing accessors for the "current debug location" of an IRBuilder.  The setter could not handle being reset to NULL, and the getter would create bogus metadata if the NULL location was returned.  Provide direct metadata-based accessors instead.

Reviewers: whitequark, deadalnix

Reviewed By: whitequark

Subscribers: hiraditya, llvm-commits

Tags: #llvm

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

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