Commit ab79ffdb authored by Nikita Popov's avatar Nikita Popov
Browse files

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

By creating LLVMContext after parsing parameters.
parent 89f05871
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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*

+1 −2
Original line number Diff line number Diff line
@@ -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...