[llvm] ab79ffd - [verify-uselistorder] Support -force-opaque-pointers
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 4 13:41:41 PDT 2021
Author: Nikita Popov
Date: 2021-09-04T22:41:31+02:00
New Revision: ab79ffdb74810b9f6636ca17d0c274b6c9f418d0
URL: https://github.com/llvm/llvm-project/commit/ab79ffdb74810b9f6636ca17d0c274b6c9f418d0
DIFF: https://github.com/llvm/llvm-project/commit/ab79ffdb74810b9f6636ca17d0c274b6c9f418d0.diff
LOG: [verify-uselistorder] Support -force-opaque-pointers
By creating LLVMContext after parsing parameters.
Added:
Modified:
llvm/test/Other/force-opaque-ptrs.ll
llvm/tools/verify-uselistorder/verify-uselistorder.cpp
Removed:
################################################################################
diff --git a/llvm/test/Other/force-opaque-ptrs.ll b/llvm/test/Other/force-opaque-ptrs.ll
index a216a5703a8f9..ec91c6ee09043 100644
--- a/llvm/test/Other/force-opaque-ptrs.ll
+++ b/llvm/test/Other/force-opaque-ptrs.ll
@@ -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*
diff --git a/llvm/tools/verify-uselistorder/verify-uselistorder.cpp b/llvm/tools/verify-uselistorder/verify-uselistorder.cpp
index 28d3467d71503..bc82385c4c95a 100644
--- a/llvm/tools/verify-uselistorder/verify-uselistorder.cpp
+++ b/llvm/tools/verify-uselistorder/verify-uselistorder.cpp
@@ -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...
More information about the llvm-commits
mailing list