add llvm-export-current-module helper function