llvm-c: Make target initializer functions external functions in lib.
authorAnders Waldenborg <anders@0x63.nu>
Wed, 9 Oct 2013 19:02:09 +0000 (19:02 +0000)
committerAnders Waldenborg <anders@0x63.nu>
Wed, 9 Oct 2013 19:02:09 +0000 (19:02 +0000)
commit9360e64e60f600bff98dbff96fabaab536947f86
treecf0b470ea2b966757766107717c4f02073b7a44d
parent5e5d494ce00741858d5a2f8c305bcd0b341988d2
llvm-c: Make target initializer functions external functions in lib.

Making them proper functions defined in the (shared)lib instead of
static inlines defined in the header files makes it possible to
actually distribute a binary compiled against the shared library
without having to worry about getting undefined symbol errors when
calling e.g LLVMInitializeAllTargetInfos because the shared library on
the other system was compiled with different targets.

Differential Revision: http://llvm-reviews.chandlerc.com/D1714

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192316 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm-c/Target.h
lib/Target/AllTargets.cpp [new file with mode: 0644]
lib/Target/CMakeLists.txt