To simplify the upcoming context-on-type change, switch all command line tools to...
[oota-llvm.git] / tools / llvm-ranlib / llvm-ranlib.cpp
index a311c528027a274711322beaacd5dbbef74faf6c..dffe3ada5f10c03593861b8ea77967a742dbd24e 100644 (file)
@@ -49,7 +49,7 @@ int main(int argc, char **argv) {
   llvm::sys::PrintStackTraceOnErrorSignal();
   llvm::PrettyStackTraceProgram X(argc, argv);
 
-  LLVMContext Context;
+  LLVMContext &Context = getGlobalContext();
   llvm_shutdown_obj Y;  // Call llvm_shutdown() on exit.
 
   // Have the command line options parsed and handle things