[LLVM-C] Add an accessor for the "value type" of a global
authorRobert Widmann <devteam.codafi@gmail.com>
Fri, 28 Sep 2018 20:54:29 +0000 (20:54 +0000)
committerRobert Widmann <devteam.codafi@gmail.com>
Fri, 28 Sep 2018 20:54:29 +0000 (20:54 +0000)
commite63a12ccbedbe29120dc6525651792117e1780f7
tree0ed68b71e2756043fda082f6e26ccf7e098838b6
parentec3d65b870c31a80932c5a2c510cbd21e0122564
[LLVM-C] Add an accessor for the "value type" of a global

Summary: Before this, there was no reasonable way to retrieve the type of a global value (most notably, a function) that was created with  the C API.

Reviewers: whitequark, deadalnix

Reviewed By: whitequark

Subscribers: llvm-commits

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

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