-static cl::list<std::string>
-Libraries("l", cl::desc("Specify library names to link with"), cl::ZeroOrMore,
- cl::Prefix, cl::value_desc("library name"));
-
-// GetModule - This function is just factored out of the functions below
-static inline Module* GetModule(const sys::Path& Filename) {
- if (Verbose) std::cerr << "Loading '" << Filename.c_str() << "'\n";
- std::string ErrorMessage;
- if (Filename.exists()) {
- Module* Result = ParseBytecodeFile(Filename.get(), &ErrorMessage);
- if (Result) return Result; // Load successful!
-
- if (Verbose) {
- std::cerr << "Error opening bytecode file: '" << Filename.c_str() << "'";
- if (ErrorMessage.size()) std::cerr << ": " << ErrorMessage;
- std::cerr << "\n";
- }
- } else {
- std::cerr << "Bytecode file: '" << Filename.c_str()
- << "' does not exist.\n";
- }
- return 0;
-}
+static cl::opt<bool> PreserveBitcodeUseListOrder(
+ "preserve-bc-uselistorder",
+ cl::desc("Preserve use-list order when writing LLVM bitcode."),
+ cl::init(true), cl::Hidden);
+
+static cl::opt<bool> PreserveAssemblyUseListOrder(
+ "preserve-ll-uselistorder",
+ cl::desc("Preserve use-list order when writing LLVM assembly."),
+ cl::init(false), cl::Hidden);