+static cl::opt<bool>
+Verbose("v", cl::desc("Print information about actions taken"));
+
+static cl::opt<bool>
+DumpAsm("d", cl::desc("Print assembly as linked"), cl::Hidden);
+
+// LoadFile - Read the specified bitcode file in and return it. This routine
+// searches the link path for the specified file to try to find it...
+//
+static inline Module *LoadFile(const char *argv0, const std::string &FN,
+ LLVMContext& Context) {
+ SMDiagnostic Err;
+ if (Verbose) errs() << "Loading '" << FN << "'\n";
+ Module* Result = 0;
+
+ Result = ParseIRFile(FN, Err, Context);
+ if (Result) return Result; // Load successful!
+
+ Err.print(argv0, errs());
+ return NULL;
+}