mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-02 17:02:25 +00:00
Fix flushing issue in drawergen
This commit is contained in:
parent
284a99f204
commit
cc94381366
1 changed files with 4 additions and 0 deletions
|
@ -599,6 +599,10 @@ std::vector<uint8_t> LLVMProgram::GenerateObjectFile(std::string cpuName)
|
||||||
PerModulePasses.run(*module);
|
PerModulePasses.run(*module);
|
||||||
|
|
||||||
// Return the resulting object file
|
// Return the resulting object file
|
||||||
|
stream.flush();
|
||||||
|
#if LLVM_VERSION_MAJOR < 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR < 8)
|
||||||
|
vecstream.flush();
|
||||||
|
#endif
|
||||||
std::vector<uint8_t> data;
|
std::vector<uint8_t> data;
|
||||||
data.resize(str.size());
|
data.resize(str.size());
|
||||||
memcpy(data.data(), str.data(), data.size());
|
memcpy(data.data(), str.data(), data.size());
|
||||||
|
|
Loading…
Reference in a new issue