[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)
commit50f726d73a419b8b4c02bf2702943cbf71e5c2a4
tree7927914271deb194980712afd57dcd4a6c787cf0
parentbec0a45ddce61abcf92db73dbb13867c270ee23e
[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

llvm-svn: 358039
llvm/include/llvm-c/Core.h
llvm/lib/IR/Core.cpp