]> granicus.if.org Git - llvm/commitdiff
Update cl::opt<uint64_t> instances to cl::opt<unsigned long long>
authorMitch Phillips <mitchphillips@outlook.com>
Wed, 1 Nov 2017 23:39:41 +0000 (23:39 +0000)
committerMitch Phillips <mitchphillips@outlook.com>
Wed, 1 Nov 2017 23:39:41 +0000 (23:39 +0000)
cl::opt<uint64_t> fails when parsing command line arguments.

See https://bugs.llvm.org/show_bug.cgi?id=19665.

Reviewers: pcc

Subscribers: mgorny, llvm-commits, kcc

Differential Revision: https://reviews.llvm.org/D38657

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317141 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-cfi-verify/lib/GraphBuilder.cpp
tools/llvm-cfi-verify/lib/GraphBuilder.h

index 808b9927fccf05608ab8e8a10e786c99ecb63789..7366ff0cf3024a13aad541b3a064d564adbbea00 100644 (file)
@@ -41,17 +41,17 @@ using Instr = llvm::cfi_verify::FileAnalysis::Instr;
 namespace llvm {
 namespace cfi_verify {
 
-uint64_t SearchLengthForUndef;
-uint64_t SearchLengthForConditionalBranch;
+unsigned long long SearchLengthForUndef;
+unsigned long long SearchLengthForConditionalBranch;
 
-static cl::opt<uint64_t, true> SearchLengthForUndefArg(
+static cl::opt<unsigned long long, true> SearchLengthForUndefArg(
     "search-length-undef",
     cl::desc("Specify the maximum amount of instructions "
              "to inspect when searching for an undefined "
              "instruction from a conditional branch."),
     cl::location(SearchLengthForUndef), cl::init(2));
 
-static cl::opt<uint64_t, true> SearchLengthForConditionalBranchArg(
+static cl::opt<unsigned long long, true> SearchLengthForConditionalBranchArg(
     "search-length-cb",
     cl::desc("Specify the maximum amount of instructions "
              "to inspect when searching for a conditional "
index 3536520d590c2c55a58020b7e367509c0fa4cb11..12d9c95e3cf619a3ea6d555288815c7cfcf96bc1 100644 (file)
@@ -47,8 +47,8 @@ using Instr = llvm::cfi_verify::FileAnalysis::Instr;
 namespace llvm {
 namespace cfi_verify {
 
-extern uint64_t SearchLengthForUndef;
-extern uint64_t SearchLengthForConditionalBranch;
+extern unsigned long long SearchLengthForUndef;
+extern unsigned long long SearchLengthForConditionalBranch;
 
 struct ConditionalBranchNode {
   uint64_t Address;