[verify-uselistorder] Support -force-opaque-pointers

By creating LLVMContext after parsing parameters.
This commit is contained in:
Nikita Popov 2021-09-04 22:40:39 +02:00
parent 89f0587154
commit ab79ffdb74
2 changed files with 2 additions and 2 deletions

View file

@ -2,6 +2,7 @@
; RUN: llvm-as --force-opaque-pointers < %s | llvm-dis --force-opaque-pointers | FileCheck %s
; RUN: llvm-as < %s | llvm-dis --force-opaque-pointers | FileCheck %s
; RUN: opt --force-opaque-pointers < %s -S | FileCheck %s
; RUN: verify-uselistorder --force-opaque-pointers < %s
%ty = type i32*

View file

@ -540,11 +540,10 @@ int main(int argc, char **argv) {
// Enable debug stream buffering.
EnableDebugBuffering = true;
LLVMContext Context;
cl::ParseCommandLineOptions(argc, argv,
"llvm tool to verify use-list order\n");
LLVMContext Context;
SMDiagnostic Err;
// Load the input module...