Commit c3bea872 by Chris Forbes

Use unique names for each LLVM IR dump

Previously this would just repeatedly overwrite the one file, which makes it difficult to see what's happening when you compile a pipeline that needs 3 routines. Change-Id: Ibab115f5ccbb17333d504e4e7948be54ca304f9d Bug: b/123193054 Reviewed-on: https://swiftshader-review.googlesource.com/c/23469Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Tested-by: 's avatarChris Forbes <chrisforbes@google.com>
parent 878d4b04
......@@ -911,7 +911,7 @@ namespace rr
#else
std::error_code error;
#endif
llvm::raw_fd_ostream file("llvm-dump-unopt.txt", error);
llvm::raw_fd_ostream file(std::string(name) + "-llvm-dump-unopt.txt", error);
::module->print(file, 0);
}
......@@ -927,7 +927,7 @@ namespace rr
#else
std::error_code error;
#endif
llvm::raw_fd_ostream file("llvm-dump-opt.txt", error);
llvm::raw_fd_ostream file(std::string(name) + "-llvm-dump-opt.txt", error);
::module->print(file, 0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment