HomePhabricator

[LLVM-C] Correct The Current Debug Location Accessors

Authored by CodaFi on Apr 9 2019, 3:31 PM.

Description

[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

Details

Committed
CodaFiApr 9 2019, 3:31 PM
Reviewer
whitequark
Differential Revision
D60484: [LLVM-C] Correct The Current Debug Location Accessors
Parents
rGbec0a45ddce6: [LLVM-C] Add Bindings to Access an Instruction's DebugLoc
Branches
Unknown
Tags
Unknown