================================================================================================
| 754 | |
| 755 | // ================================================================================================ |
| 756 | static void dumpCodeObject(const std::string& image) { |
| 757 | char fname[30]; |
| 758 | static std::atomic<int> index; |
| 759 | sprintf(fname, "_code_object%04d.o", index++); |
| 760 | ClPrint(amd::LOG_DETAIL_DEBUG, amd::LOG_CODE, "Code object saved in %s\n", fname); |
| 761 | std::ofstream ofs; |
| 762 | ofs.open(fname, std::ios::binary); |
| 763 | ofs << image; |
| 764 | ofs.close(); |
| 765 | } |
| 766 | |
| 767 | // ================================================================================================ |
| 768 | bool Program::linkImpl(amd::option::Options* options) { |