Do not append unique suffix to asm file when -output-s is given.

This fixes a regression introduced by commit 50f145640
(pull request #473).
This commit is contained in:
David Nadlinger
2013-09-15 23:40:55 +02:00
parent 286770ed7b
commit 0a8e1f78b7

View File

@@ -169,7 +169,8 @@ void writeModule(llvm::Module* m, std::string filename)
llvm::sys::Path spath(filename);
spath.eraseSuffix();
spath.appendSuffix(std::string(global.s_ext));
spath.createTemporaryFileOnDisk();
if (!global.params.output_s)
spath.createTemporaryFileOnDisk();
#endif
Logger::println("Writing native asm to: %s\n", spath.c_str());