forked from OSchip/llvm-project
[llc] Initialize context for parsing options
This will allow using -force-opaque-pointers in codegen tests.
This commit is contained in:
parent
29df4ab3f3
commit
ae5e5f2011
|
@ -329,8 +329,6 @@ int main(int argc, char **argv) {
|
|||
// Enable debug stream buffering.
|
||||
EnableDebugBuffering = true;
|
||||
|
||||
LLVMContext Context;
|
||||
|
||||
// Initialize targets first, so that --version shows registered targets.
|
||||
InitializeAllTargets();
|
||||
InitializeAllTargetMCs();
|
||||
|
@ -365,6 +363,7 @@ int main(int argc, char **argv) {
|
|||
|
||||
cl::ParseCommandLineOptions(argc, argv, "llvm system compiler\n");
|
||||
|
||||
LLVMContext Context;
|
||||
Context.setDiscardValueNames(DiscardValueNames);
|
||||
|
||||
// Set a diagnostic handler that doesn't exit on the first error
|
||||
|
|
Loading…
Reference in New Issue