OSDN Git Service

LLVMRunStaticConstructors can be called before object is finalized, #24028
authorAmaury Sechet <deadalnix@gmail.com>
Fri, 15 Jan 2016 00:23:34 +0000 (00:23 +0000)
committerAmaury Sechet <deadalnix@gmail.com>
Fri, 15 Jan 2016 00:23:34 +0000 (00:23 +0000)
commita0bd1626ca1e550ef2f1fd9d7aadafd89ab8498e
tree57531f552868a5797f2e4ba28ba405f341aa0565
parent9039b1ff4e76d644234cf3d89a71551f77c98548
LLVMRunStaticConstructors can be called before object is finalized, #24028

Summary: Since you cannot call finalizeObject manually through the C-API and other functions from the C-API automatically call it, LLVMRunStaticConstructors should also call it or otherwise you cannot call it without first calling a workaround function (or call any other function from the C-API which implicitly finalizes the object).

Reviewers: dnovillo, spatel, bkramer, deadalnix, joker.eph, echristo, lhames

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D16188

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257849 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/ExecutionEngineBindings.cpp