OSDN Git Service

[LLVM-C] Add Accessors For Global Variable Metadata Properties
authorRobert Widmann <devteam.codafi@gmail.com>
Tue, 16 Apr 2019 21:39:48 +0000 (21:39 +0000)
committerRobert Widmann <devteam.codafi@gmail.com>
Tue, 16 Apr 2019 21:39:48 +0000 (21:39 +0000)
commit22f6b59ebe693b16021042c156113a042565d62f
tree53f8b0b76b3a1a001d24f16eb08b5e7316e61483
parent778b736247a39a549254f1aa34885d1fa6d8d3f3
[LLVM-C] Add Accessors For Global Variable Metadata Properties

Summary: Metadata for a global variable is really a  (GlobalVariable, Expression) tuple.  Allow access to these, then allow retrieving the file, scope, and line for a DIVariable, whether global or local.  This should be the last of the accessors required for uniform access to location and file information metadata.

Reviewers: jberdine, whitequark, deadalnix

Reviewed By: jberdine, whitequark

Subscribers: hiraditya, llvm-commits

Tags: #llvm

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

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