mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:50:30 +00:00
Disable use list order on the gold plugin.
It turns out that his is *really* slow. With this change the link of clang with plugin-opt=emit-llvm goes from 41 to 26 seconds. We can add an option to enable it again if needed. llvm-svn: 256302
This commit is contained in:
parent
b04a60c3d7
commit
69b537cdd4
@ -756,7 +756,7 @@ static void saveBCFile(StringRef Path, Module &M) {
|
||||
raw_fd_ostream OS(Path, EC, sys::fs::OpenFlags::F_None);
|
||||
if (EC)
|
||||
message(LDPL_FATAL, "Failed to write the output file.");
|
||||
WriteBitcodeToFile(&M, OS, /* ShouldPreserveUseListOrder */ true);
|
||||
WriteBitcodeToFile(&M, OS, /* ShouldPreserveUseListOrder */ false);
|
||||
}
|
||||
|
||||
static void codegen(std::unique_ptr<Module> M) {
|
||||
|
Loading…
Reference in New Issue
Block a user