[RS4GC] Add an option to suppress vector splitting
[oota-llvm.git] / tools / gold / gold-plugin.cpp
index 909322f07087b72823aaacd739142b17ac5423a7..31d7f156a7004d1c08940ef12d7bf24fc1493853 100644 (file)
@@ -75,15 +75,15 @@ struct claimed_file {
 
 /// RAII wrapper to manage opening and releasing of a ld_plugin_input_file.
 struct PluginInputFile {
-  void *handle;
+  void *Handle;
   ld_plugin_input_file File;
 
-  PluginInputFile(void *handle) : handle(handle) {
-    if (get_input_file(handle, &File) != LDPS_OK)
+  PluginInputFile(void *Handle) : Handle(Handle) {
+    if (get_input_file(Handle, &File) != LDPS_OK)
       message(LDPL_FATAL, "Failed to get file information");
   }
   ~PluginInputFile() {
-    if (release_input_file(handle) != LDPS_OK)
+    if (release_input_file(Handle) != LDPS_OK)
       message(LDPL_FATAL, "Failed to release file information");
   }
   ld_plugin_input_file &file() { return 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) {