[llvm-commits] [llvm] r72969 - in /llvm/trunk/lib/Target: ARM/ARMMachineFunctionInfo.h Alpha/AlphaMachineFunctionInfo.h IA64/IA64MachineFunctionInfo.h MSP430/MSP430MachineFunctionInfo.h PowerPC/PPCMachineFunctionInfo.h X86/X86MachineFunctionInfo.h XCore/XCoreMachineFunctionInfo.h
Dan Gohman
gohman at apple.com
Fri Jun 5 16:05:51 PDT 2009
Author: djg
Date: Fri Jun 5 18:05:51 2009
New Revision: 72969
URL: http://llvm.org/viewvc/llvm-project?rev=72969&view=rev
Log:
Add explicit keywords.
Modified:
llvm/trunk/lib/Target/ARM/ARMMachineFunctionInfo.h
llvm/trunk/lib/Target/Alpha/AlphaMachineFunctionInfo.h
llvm/trunk/lib/Target/IA64/IA64MachineFunctionInfo.h
llvm/trunk/lib/Target/MSP430/MSP430MachineFunctionInfo.h
llvm/trunk/lib/Target/PowerPC/PPCMachineFunctionInfo.h
llvm/trunk/lib/Target/X86/X86MachineFunctionInfo.h
llvm/trunk/lib/Target/XCore/XCoreMachineFunctionInfo.h
Modified: llvm/trunk/lib/Target/ARM/ARMMachineFunctionInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMMachineFunctionInfo.h?rev=72969&r1=72968&r2=72969&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMMachineFunctionInfo.h (original)
+++ llvm/trunk/lib/Target/ARM/ARMMachineFunctionInfo.h Fri Jun 5 18:05:51 2009
@@ -100,7 +100,7 @@
GPRCS1Frames(0), GPRCS2Frames(0), DPRCSFrames(0),
JumpTableUId(0), ConstPoolEntryUId(0) {}
- ARMFunctionInfo(MachineFunction &MF) :
+ explicit ARMFunctionInfo(MachineFunction &MF) :
isThumb(MF.getTarget().getSubtarget<ARMSubtarget>().isThumb()),
Align(isThumb ? 1U : 2U),
VarArgsRegSaveSize(0), HasStackFrame(false),
Modified: llvm/trunk/lib/Target/Alpha/AlphaMachineFunctionInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Alpha/AlphaMachineFunctionInfo.h?rev=72969&r1=72968&r2=72969&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Alpha/AlphaMachineFunctionInfo.h (original)
+++ llvm/trunk/lib/Target/Alpha/AlphaMachineFunctionInfo.h Fri Jun 5 18:05:51 2009
@@ -33,8 +33,8 @@
public:
AlphaMachineFunctionInfo() : GlobalBaseReg(0), GlobalRetAddr(0) {}
- AlphaMachineFunctionInfo(MachineFunction &MF) : GlobalBaseReg(0),
- GlobalRetAddr(0) {}
+ explicit AlphaMachineFunctionInfo(MachineFunction &MF) : GlobalBaseReg(0),
+ GlobalRetAddr(0) {}
unsigned getGlobalBaseReg() const { return GlobalBaseReg; }
void setGlobalBaseReg(unsigned Reg) { GlobalBaseReg = Reg; }
Modified: llvm/trunk/lib/Target/IA64/IA64MachineFunctionInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/IA64/IA64MachineFunctionInfo.h?rev=72969&r1=72968&r2=72969&view=diff
==============================================================================
--- llvm/trunk/lib/Target/IA64/IA64MachineFunctionInfo.h (original)
+++ llvm/trunk/lib/Target/IA64/IA64MachineFunctionInfo.h Fri Jun 5 18:05:51 2009
@@ -24,7 +24,7 @@
// by this machinefunction? (used to compute the appropriate
// entry in the 'alloc' instruction at the top of the
// machinefunction)
- IA64FunctionInfo(MachineFunction& MF) { outRegsUsed=0; };
+ explicit IA64FunctionInfo(MachineFunction& MF) { outRegsUsed=0; };
};
Modified: llvm/trunk/lib/Target/MSP430/MSP430MachineFunctionInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/MSP430MachineFunctionInfo.h?rev=72969&r1=72968&r2=72969&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSP430/MSP430MachineFunctionInfo.h (original)
+++ llvm/trunk/lib/Target/MSP430/MSP430MachineFunctionInfo.h Fri Jun 5 18:05:51 2009
@@ -28,7 +28,8 @@
public:
MSP430MachineFunctionInfo() : CalleeSavedFrameSize(0) {}
- MSP430MachineFunctionInfo(MachineFunction &MF) : CalleeSavedFrameSize(0) {}
+ explicit MSP430MachineFunctionInfo(MachineFunction &MF)
+ : CalleeSavedFrameSize(0) {}
unsigned getCalleeSavedFrameSize() const { return CalleeSavedFrameSize; }
void setCalleeSavedFrameSize(unsigned bytes) { CalleeSavedFrameSize = bytes; }
Modified: llvm/trunk/lib/Target/PowerPC/PPCMachineFunctionInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCMachineFunctionInfo.h?rev=72969&r1=72968&r2=72969&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCMachineFunctionInfo.h (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCMachineFunctionInfo.h Fri Jun 5 18:05:51 2009
@@ -59,7 +59,7 @@
bool HasFastCall;
public:
- PPCFunctionInfo(MachineFunction &MF)
+ explicit PPCFunctionInfo(MachineFunction &MF)
: FramePointerSaveIndex(0),
ReturnAddrSaveIndex(0),
SpillsCR(false),
Modified: llvm/trunk/lib/Target/X86/X86MachineFunctionInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86MachineFunctionInfo.h?rev=72969&r1=72968&r2=72969&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86MachineFunctionInfo.h (original)
+++ llvm/trunk/lib/Target/X86/X86MachineFunctionInfo.h Fri Jun 5 18:05:51 2009
@@ -73,14 +73,15 @@
SRetReturnReg(0),
GlobalBaseReg(0) {}
- X86MachineFunctionInfo(MachineFunction &MF) : ForceFramePointer(false),
- CalleeSavedFrameSize(0),
- BytesToPopOnReturn(0),
- DecorationStyle(None),
- ReturnAddrIndex(0),
- TailCallReturnAddrDelta(0),
- SRetReturnReg(0),
- GlobalBaseReg(0) {}
+ explicit X86MachineFunctionInfo(MachineFunction &MF)
+ : ForceFramePointer(false),
+ CalleeSavedFrameSize(0),
+ BytesToPopOnReturn(0),
+ DecorationStyle(None),
+ ReturnAddrIndex(0),
+ TailCallReturnAddrDelta(0),
+ SRetReturnReg(0),
+ GlobalBaseReg(0) {}
bool getForceFramePointer() const { return ForceFramePointer;}
void setForceFramePointer(bool forceFP) { ForceFramePointer = forceFP; }
Modified: llvm/trunk/lib/Target/XCore/XCoreMachineFunctionInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/XCore/XCoreMachineFunctionInfo.h?rev=72969&r1=72968&r2=72969&view=diff
==============================================================================
--- llvm/trunk/lib/Target/XCore/XCoreMachineFunctionInfo.h (original)
+++ llvm/trunk/lib/Target/XCore/XCoreMachineFunctionInfo.h Fri Jun 5 18:05:51 2009
@@ -40,7 +40,7 @@
FPSpillSlot(0),
VarArgsFrameIndex(0) {}
- XCoreFunctionInfo(MachineFunction &MF) :
+ explicit XCoreFunctionInfo(MachineFunction &MF) :
UsesLR(false),
LRSpillSlot(0),
FPSpillSlot(0),
More information about the llvm-commits
mailing list