hfinkel / llvm-project-cxxjit

Clang with JIT extensions
https://github.com/hfinkel/llvm-project-cxxjit/wiki
229 stars 23 forks source link

Replace aliases in linked module #12

Closed sebastiankreutzer closed 4 years ago

sebastiankreutzer commented 5 years ago

This patch addresses the regression test failures caused by #9. The reason for the failures were global aliases pointing to functions marked available_externally, which is illegal. As a workaround, such aliases are now replaced with a clone of the corresponding function with the same linkage as the original alias.