If the first function passed to getPointerToFunction has private linkage,
MCJIT crashes, because the TargetMachine's TargetLoweringObjectFile has
not been inititalized yet. Fix this by moving the name resolution past
code generation (which initializes the TargetLoweringObjectFile) in the
common case, and returning null early for declarations with private
linkage.
Details
Details
- Reviewers
lhames
Diff Detail
Diff Detail