[llvm] a2976c4 - [NFC] Make the type of X86AlignBranchBoundary compatible
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 1 22:36:30 PST 2020
Author: Shengchen Kan
Date: 2020-01-02T14:35:57+08:00
New Revision: a2976c490da3b6d7253d4034ae507a760457ea18
URL: https://github.com/llvm/llvm-project/commit/a2976c490da3b6d7253d4034ae507a760457ea18
DIFF: https://github.com/llvm/llvm-project/commit/a2976c490da3b6d7253d4034ae507a760457ea18.diff
LOG: [NFC] Make the type of X86AlignBranchBoundary compatible
Change the type of X86AlignBranchBoundary from cl::opt<uint64_t> to
cl::opt<unsigned> since the template class cl::opt is only instantiated with
type unsigned, int, std::string, char and bool.
Added:
Modified:
llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
index 5d18bd5921e5..ec250e167b7f 100644
--- a/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
+++ b/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
@@ -117,7 +117,7 @@ class X86AlignBranchKind {
X86AlignBranchKind X86AlignBranchKindLoc;
-cl::opt<uint64_t> X86AlignBranchBoundary(
+cl::opt<unsigned> X86AlignBranchBoundary(
"x86-align-branch-boundary", cl::init(0),
cl::desc(
"Control how the assembler should align branches with NOP. If the "
More information about the llvm-commits
mailing list