llvm.org GIT mirror llvm / 0d7c695
To simplify the upcoming context-on-type change, switch all command line tools to using the default global context for now. This will let us to hardwire stuff to the global context in the short term while the API is sorted out. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75846 91177308-0d34-0410-b5e6-96231b3b80d8 Owen Anderson 10 years ago
14 changed file(s) with 14 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
7474 " for more information.\n");
7575 sys::SetInterruptFunction(BugpointInterruptFunction);
7676
77 LLVMContext Context;
77 LLVMContext& Context = getGlobalContext();
7878 BugDriver D(argv[0], AsChild, FindBugs, TimeoutValue, MemoryLimit, Context);
7979 if (D.addSources(InputFilenames)) return 1;
8080 D.addPasses(PassList.begin(), PassList.end());
207207 int main(int argc, char **argv) {
208208 sys::PrintStackTraceOnErrorSignal();
209209 PrettyStackTraceProgram X(argc, argv);
210 LLVMContext Context;
210 LLVMContext &Context = getGlobalContext();
211211 llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
212212 cl::ParseCommandLineOptions(argc, argv, "llvm system compiler\n");
213213
9393 sys::PrintStackTraceOnErrorSignal();
9494 PrettyStackTraceProgram X(argc, argv);
9595
96 LLVMContext Context;
96 LLVMContext &Context = getGlobalContext();
9797 atexit(do_shutdown); // Call llvm_shutdown() on exit.
9898 cl::ParseCommandLineOptions(argc, argv,
9999 "llvm interpreter & dynamic compiler\n");
691691 // Print a stack trace if we signal out.
692692 sys::PrintStackTraceOnErrorSignal();
693693 PrettyStackTraceProgram X(argc, argv);
694 LLVMContext Context;
694 LLVMContext &Context = getGlobalContext();
695695 llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
696696
697697 // Have the command line options parsed and handle things
5454 // Print a stack trace if we signal out.
5555 sys::PrintStackTraceOnErrorSignal();
5656 PrettyStackTraceProgram X(argc, argv);
57 LLVMContext Context;
57 LLVMContext &Context = getGlobalContext();
5858 llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
5959 cl::ParseCommandLineOptions(argc, argv, "llvm .ll -> .bc assembler\n");
6060
5454 sys::PrintStackTraceOnErrorSignal();
5555 PrettyStackTraceProgram X(argc, argv);
5656
57 LLVMContext Context;
57 LLVMContext &Context = getGlobalContext();
5858 llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
5959 std::cout << "NOTE: llvm-db is known useless right now.\n";
6060 try {
4848 sys::PrintStackTraceOnErrorSignal();
4949 PrettyStackTraceProgram X(argc, argv);
5050
51 LLVMContext Context;
51 LLVMContext &Context = getGlobalContext();
5252 llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
5353 try {
5454 cl::ParseCommandLineOptions(argc, argv, "llvm .bc -> .ll disassembler\n");
6060 sys::PrintStackTraceOnErrorSignal();
6161 PrettyStackTraceProgram X(argc, argv);
6262
63 LLVMContext Context;
63 LLVMContext &Context = getGlobalContext();
6464 llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
6565 cl::ParseCommandLineOptions(argc, argv, "llvm extractor\n");
6666
506506 sys::PrintStackTraceOnErrorSignal();
507507 PrettyStackTraceProgram X(argc, argv);
508508
509 LLVMContext Context;
509 LLVMContext &Context = getGlobalContext();
510510 llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
511511 try {
512512 // Initial global variable above for convenience printing of program name.
8383 sys::PrintStackTraceOnErrorSignal();
8484 PrettyStackTraceProgram X(argc, argv);
8585
86 LLVMContext Context;
86 LLVMContext &Context = getGlobalContext();
8787 llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
8888 cl::ParseCommandLineOptions(argc, argv, "llvm linker\n");
8989
133133 }
134134
135135 static void DumpSymbolNamesFromFile(std::string &Filename) {
136 LLVMContext Context;
136 LLVMContext &Context = getGlobalContext();
137137 std::string ErrorMessage;
138138 sys::Path aPath(Filename);
139139 // Note: Currently we do not support reading an archive from stdin.
255255 sys::PrintStackTraceOnErrorSignal();
256256 PrettyStackTraceProgram X(argc, argv);
257257
258 LLVMContext Context;
258 LLVMContext &Context = getGlobalContext();
259259 llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
260260 try {
261261 cl::ParseCommandLineOptions(argc, argv, "llvm profile dump decoder\n");
4848 llvm::sys::PrintStackTraceOnErrorSignal();
4949 llvm::PrettyStackTraceProgram X(argc, argv);
5050
51 LLVMContext Context;
51 LLVMContext &Context = getGlobalContext();
5252 llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
5353
5454 // Have the command line options parsed and handle things
308308 //
309309 int main(int argc, char **argv) {
310310 llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
311 LLVMContext Context;
311 LLVMContext &Context = getGlobalContext();
312312 try {
313313 cl::ParseCommandLineOptions(argc, argv,
314314 "llvm .bc -> .bc modular optimizer and analysis printer\n");