Disable use list order on the gold plugin.
[oota-llvm.git] / tools / gold / gold-plugin.cpp
index b6acea76dc3c8954c16cd3f168ddb323d266dba7..31d7f156a7004d1c08940ef12d7bf24fc1493853 100644 (file)
@@ -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) {