dso_list was added as an argument for createInternalizePass in 3.4, and then
it was removed again in the same llvm version.
Tested-by: Mike Lothian <mike@fireburn.co.uk>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
llvm::Function *kernel = *I;
export_list.push_back(kernel->getName().data());
}
-#if HAVE_LLVM < 0x0304
PM.add(llvm::createInternalizePass(export_list));
-#else
- std::vector<const char*> dso_list;
- PM.add(llvm::createInternalizePass(export_list, dso_list));
-#endif
PM.run(*mod);
}