[llvm] 9e406ee - [X86] Make some basic VarArgsLoweringHelper helper methods const. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 31 05:21:27 PDT 2020
Author: Simon Pilgrim
Date: 2020-10-31T12:16:49Z
New Revision: 9e406ee808c277d43875af57cca36c5cbbeaf7bf
URL: https://github.com/llvm/llvm-project/commit/9e406ee808c277d43875af57cca36c5cbbeaf7bf
DIFF: https://github.com/llvm/llvm-project/commit/9e406ee808c277d43875af57cca36c5cbbeaf7bf.diff
LOG: [X86] Make some basic VarArgsLoweringHelper helper methods const. NFCI.
Fixes a number of cppcheck remarks.
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 28f4a3b20ae8..2c5175e0543e 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -3381,8 +3381,8 @@ class VarArgsLoweringHelper {
void forwardMustTailParameters(SDValue &Chain);
- bool is64Bit() { return Subtarget.is64Bit(); }
- bool isWin64() { return Subtarget.isCallingConvWin64(CallConv); }
+ bool is64Bit() const { return Subtarget.is64Bit(); }
+ bool isWin64() const { return Subtarget.isCallingConvWin64(CallConv); }
X86MachineFunctionInfo *FuncInfo;
const SDLoc &DL;
More information about the llvm-commits
mailing list