12 files changed:
unsigned NumNodes;
public:
unsigned NumNodes;
public:
- FoldingSetImpl(unsigned Log2InitSize = 6);
+ explicit FoldingSetImpl(unsigned Log2InitSize = 6);
virtual ~FoldingSetImpl();
// Forward declaration.
virtual ~FoldingSetImpl();
// Forward declaration.
- FoldingSet(unsigned Log2InitSize = 6)
+ explicit FoldingSet(unsigned Log2InitSize = 6)
: FoldingSetImpl(Log2InitSize)
{}
: FoldingSetImpl(Log2InitSize)
{}
unsigned def;
unsigned reg;
SmallVector<unsigned, 4> kills;
unsigned def;
unsigned reg;
SmallVector<unsigned, 4> kills;
- VNInfo() : def(~1U), reg(0) {};
- VNInfo(unsigned d, unsigned r) : def(d), reg(r) {};
+ VNInfo() : def(~1U), reg(0) {}
+ VNInfo(unsigned d, unsigned r) : def(d), reg(r) {}
};
private:
SmallVector<VNInfo, 4> ValueNumberInfo;
};
private:
SmallVector<VNInfo, 4> ValueNumberInfo;
public:
explicit MachineConstantPoolValue(const Type *ty) : Ty(ty) {}
public:
explicit MachineConstantPoolValue(const Type *ty) : Ty(ty) {}
- virtual ~MachineConstantPoolValue() {};
+ virtual ~MachineConstantPoolValue() {}
/// getType - get type of this MachineConstantPoolValue.
///
/// getType - get type of this MachineConstantPoolValue.
///
/// of type are accessed/created with MF::getInfo and destroyed when the
/// MachineFunction is destroyed.
struct MachineFunctionInfo {
/// of type are accessed/created with MF::getInfo and destroyed when the
/// MachineFunction is destroyed.
struct MachineFunctionInfo {
- virtual ~MachineFunctionInfo() {};
+ virtual ~MachineFunctionInfo() {}
};
class MachineFunction : private Annotation {
};
class MachineFunction : private Annotation {
public:
RegScavenger()
: MBB(NULL), NumPhysRegs(0), Tracking(false),
public:
RegScavenger()
: MBB(NULL), NumPhysRegs(0), Tracking(false),
- ScavengingFrameIndex(-1), ScavengedReg(0), ScavengedRC(NULL) {};
+ ScavengingFrameIndex(-1), ScavengedReg(0), ScavengedRC(NULL) {}
explicit RegScavenger(MachineBasicBlock *mbb)
: MBB(mbb), NumPhysRegs(0), Tracking(false),
explicit RegScavenger(MachineBasicBlock *mbb)
: MBB(mbb), NumPhysRegs(0), Tracking(false),
- ScavengingFrameIndex(-1), ScavengedReg(0), ScavengedRC(NULL) {};
+ ScavengingFrameIndex(-1), ScavengedReg(0), ScavengedRC(NULL) {}
/// enterBasicBlock - Start tracking liveness from the begin of the specific
/// basic block.
/// enterBasicBlock - Start tracking liveness from the begin of the specific
/// basic block.
};
struct JumpTable {
JumpTable(unsigned R, unsigned J, MachineBasicBlock *M,
};
struct JumpTable {
JumpTable(unsigned R, unsigned J, MachineBasicBlock *M,
- MachineBasicBlock *D): Reg(R), JTI(J), MBB(M), Default(D) {};
+ MachineBasicBlock *D): Reg(R), JTI(J), MBB(M), Default(D) {}
/// Reg - the virtual register containing the index of the jump table entry
//. to jump to.
/// Reg - the virtual register containing the index of the jump table entry
//. to jump to.
struct JumpTableHeader {
JumpTableHeader(uint64_t F, uint64_t L, Value* SV, MachineBasicBlock* H,
bool E = false):
struct JumpTableHeader {
JumpTableHeader(uint64_t F, uint64_t L, Value* SV, MachineBasicBlock* H,
bool E = false):
- First(F), Last(L), SValue(SV), HeaderBB(H), Emitted(E) {};
+ First(F), Last(L), SValue(SV), HeaderBB(H), Emitted(E) {}
uint64_t First;
uint64_t Last;
Value *SValue;
uint64_t First;
uint64_t Last;
Value *SValue;
struct BitTestCase {
BitTestCase(uint64_t M, MachineBasicBlock* T, MachineBasicBlock* Tr):
struct BitTestCase {
BitTestCase(uint64_t M, MachineBasicBlock* T, MachineBasicBlock* Tr):
- Mask(M), ThisBB(T), TargetBB(Tr) { };
+ Mask(M), ThisBB(T), TargetBB(Tr) { }
uint64_t Mask;
MachineBasicBlock* ThisBB;
MachineBasicBlock* TargetBB;
uint64_t Mask;
MachineBasicBlock* ThisBB;
MachineBasicBlock* TargetBB;
MachineBasicBlock* P, MachineBasicBlock* D,
const BitTestInfo& C):
First(F), Range(R), SValue(SV), Reg(Rg), Emitted(E),
MachineBasicBlock* P, MachineBasicBlock* D,
const BitTestInfo& C):
First(F), Range(R), SValue(SV), Reg(Rg), Emitted(E),
- Parent(P), Default(D), Cases(C) { };
+ Parent(P), Default(D), Cases(C) { }
uint64_t First;
uint64_t Range;
Value *SValue;
uint64_t First;
uint64_t Range;
Value *SValue;
public:
static char ID; // Pass identifcation, replacement for typeid
public:
static char ID; // Pass identifcation, replacement for typeid
- SimpleRegisterCoalescing() : MachineFunctionPass((intptr_t)&ID) {};
+ SimpleRegisterCoalescing() : MachineFunctionPass((intptr_t)&ID) {}
struct CopyRec {
MachineInstr *MI;
struct CopyRec {
MachineInstr *MI;
sys::Path Filename;
bool DeleteIt;
public:
sys::Path Filename;
bool DeleteIt;
public:
- FileRemover(const sys::Path &filename, bool deleteIt = true)
+ explicit FileRemover(const sys::Path &filename, bool deleteIt = true)
: Filename(filename), DeleteIt(deleteIt) {}
~FileRemover() {
: Filename(filename), DeleteIt(deleteIt) {}
~FileRemover() {
- TargetELFWriterInfo(MachineType machine) : EMachine(machine) {}
+ explicit TargetELFWriterInfo(MachineType machine) : EMachine(machine) {}
virtual ~TargetELFWriterInfo() {}
unsigned short getEMachine() const { return EMachine; }
virtual ~TargetELFWriterInfo() {}
unsigned short getEMachine() const { return EMachine; }
bool isByVal;
ArgListEntry() : isSExt(false), isZExt(false), isInReg(false),
bool isByVal;
ArgListEntry() : isSExt(false), isZExt(false), isInReg(false),
- isSRet(false), isNest(false), isByVal(false) { };
+ isSRet(false), isNest(false), isByVal(false) { }
};
typedef std::vector<ArgListEntry> ArgListTy;
virtual std::pair<SDOperand, SDOperand>
};
typedef std::vector<ArgListEntry> ArgListTy;
virtual std::pair<SDOperand, SDOperand>
std::vector<DIEValue *> Values;
public:
std::vector<DIEValue *> Values;
public:
+ explicit DIE(unsigned Tag)
: Abbrev(Tag, DW_CHILDREN_no)
, Offset(0)
, Size(0)
: Abbrev(Tag, DW_CHILDREN_no)
, Offset(0)
, Size(0)
+ explicit DIEValue(unsigned T)
: Type(T)
{}
virtual ~DIEValue() {}
: Type(T)
{}
virtual ~DIEValue() {}
uint64_t Integer;
public:
uint64_t Integer;
public:
- DIEInteger(uint64_t I) : DIEValue(isInteger), Integer(I) {}
+ explicit DIEInteger(uint64_t I) : DIEValue(isInteger), Integer(I) {}
// Implement isa/cast/dyncast.
static bool classof(const DIEInteger *) { return true; }
// Implement isa/cast/dyncast.
static bool classof(const DIEInteger *) { return true; }
public:
const std::string String;
public:
const std::string String;
- DIEString(const std::string &S) : DIEValue(isString), String(S) {}
+ explicit DIEString(const std::string &S) : DIEValue(isString), String(S) {}
// Implement isa/cast/dyncast.
static bool classof(const DIEString *) { return true; }
// Implement isa/cast/dyncast.
static bool classof(const DIEString *) { return true; }
- DIEDwarfLabel(const DWLabel &L) : DIEValue(isLabel), Label(L) {}
+ explicit DIEDwarfLabel(const DWLabel &L) : DIEValue(isLabel), Label(L) {}
// Implement isa/cast/dyncast.
static bool classof(const DIEDwarfLabel *) { return true; }
// Implement isa/cast/dyncast.
static bool classof(const DIEDwarfLabel *) { return true; }
public:
const std::string Label;
public:
const std::string Label;
- DIEObjectLabel(const std::string &L) : DIEValue(isAsIsLabel), Label(L) {}
+ explicit DIEObjectLabel(const std::string &L)
+ : DIEValue(isAsIsLabel), Label(L) {}
// Implement isa/cast/dyncast.
static bool classof(const DIEObjectLabel *) { return true; }
// Implement isa/cast/dyncast.
static bool classof(const DIEObjectLabel *) { return true; }
- DIEntry(DIE *E) : DIEValue(isEntry), Entry(E) {}
+ explicit DIEntry(DIE *E) : DIEValue(isEntry), Entry(E) {}
// Implement isa/cast/dyncast.
static bool classof(const DIEntry *) { return true; }
// Implement isa/cast/dyncast.
static bool classof(const DIEntry *) { return true; }
std::vector<MachineMove> Moves;
FunctionDebugFrameInfo(unsigned Num, const std::vector<MachineMove> &M):
std::vector<MachineMove> Moves;
FunctionDebugFrameInfo(unsigned Num, const std::vector<MachineMove> &M):
- Number(Num), Moves(M) { };
+ Number(Num), Moves(M) { }
};
std::vector<FunctionDebugFrameInfo> DebugFrames;
};
std::vector<FunctionDebugFrameInfo> DebugFrames;
bool hC, bool hL,
const std::vector<MachineMove> &M):
FnName(FN), Number(Num), PersonalityIndex(P),
bool hC, bool hL,
const std::vector<MachineMove> &M):
FnName(FN), Number(Num), PersonalityIndex(P),
- hasCalls(hC), hasLandingPads(hL), Moves(M) { };
+ hasCalls(hC), hasLandingPads(hL), Moves(M) { }
};
std::vector<FunctionEHFrameInfo> EHFrames;
};
std::vector<FunctionEHFrameInfo> EHFrames;
std::vector<unsigned> regUse_;
public:
std::vector<unsigned> regUse_;
public:
- PhysRegTracker(const MRegisterInfo& mri)
+ explicit PhysRegTracker(const MRegisterInfo& mri)
: mri_(&mri),
regUse_(mri_->getNumRegs(), 0) {
}
: mri_(&mri),
regUse_(mri_->getNumRegs(), 0) {
}