mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Add explicit keywords and remove spurious trailing semicolons.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41482 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6b83b5d1ae
commit
81975f6dfd
@ -119,7 +119,7 @@ private:
|
|||||||
unsigned NumNodes;
|
unsigned NumNodes;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FoldingSetImpl(unsigned Log2InitSize = 6);
|
explicit FoldingSetImpl(unsigned Log2InitSize = 6);
|
||||||
virtual ~FoldingSetImpl();
|
virtual ~FoldingSetImpl();
|
||||||
|
|
||||||
// Forward declaration.
|
// Forward declaration.
|
||||||
@ -232,7 +232,7 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FoldingSet(unsigned Log2InitSize = 6)
|
explicit FoldingSet(unsigned Log2InitSize = 6)
|
||||||
: FoldingSetImpl(Log2InitSize)
|
: FoldingSetImpl(Log2InitSize)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -96,8 +96,8 @@ namespace llvm {
|
|||||||
unsigned def;
|
unsigned def;
|
||||||
unsigned reg;
|
unsigned reg;
|
||||||
SmallVector<unsigned, 4> kills;
|
SmallVector<unsigned, 4> kills;
|
||||||
VNInfo() : def(~1U), reg(0) {};
|
VNInfo() : def(~1U), reg(0) {}
|
||||||
VNInfo(unsigned d, unsigned r) : def(d), reg(r) {};
|
VNInfo(unsigned d, unsigned r) : def(d), reg(r) {}
|
||||||
};
|
};
|
||||||
private:
|
private:
|
||||||
SmallVector<VNInfo, 4> ValueNumberInfo;
|
SmallVector<VNInfo, 4> ValueNumberInfo;
|
||||||
|
@ -36,7 +36,7 @@ class MachineConstantPoolValue {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
explicit MachineConstantPoolValue(const Type *ty) : Ty(ty) {}
|
explicit MachineConstantPoolValue(const Type *ty) : Ty(ty) {}
|
||||||
virtual ~MachineConstantPoolValue() {};
|
virtual ~MachineConstantPoolValue() {}
|
||||||
|
|
||||||
/// getType - get type of this MachineConstantPoolValue.
|
/// getType - get type of this MachineConstantPoolValue.
|
||||||
///
|
///
|
||||||
|
@ -73,7 +73,7 @@ public:
|
|||||||
/// of type are accessed/created with MF::getInfo and destroyed when the
|
/// of type are accessed/created with MF::getInfo and destroyed when the
|
||||||
/// MachineFunction is destroyed.
|
/// MachineFunction is destroyed.
|
||||||
struct MachineFunctionInfo {
|
struct MachineFunctionInfo {
|
||||||
virtual ~MachineFunctionInfo() {};
|
virtual ~MachineFunctionInfo() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class MachineFunction : private Annotation {
|
class MachineFunction : private Annotation {
|
||||||
|
@ -55,11 +55,11 @@ class RegScavenger {
|
|||||||
public:
|
public:
|
||||||
RegScavenger()
|
RegScavenger()
|
||||||
: MBB(NULL), NumPhysRegs(0), Tracking(false),
|
: MBB(NULL), NumPhysRegs(0), Tracking(false),
|
||||||
ScavengingFrameIndex(-1), ScavengedReg(0), ScavengedRC(NULL) {};
|
ScavengingFrameIndex(-1), ScavengedReg(0), ScavengedRC(NULL) {}
|
||||||
|
|
||||||
explicit RegScavenger(MachineBasicBlock *mbb)
|
explicit RegScavenger(MachineBasicBlock *mbb)
|
||||||
: MBB(mbb), NumPhysRegs(0), Tracking(false),
|
: 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
|
/// enterBasicBlock - Start tracking liveness from the begin of the specific
|
||||||
/// basic block.
|
/// basic block.
|
||||||
|
@ -104,7 +104,7 @@ public:
|
|||||||
};
|
};
|
||||||
struct JumpTable {
|
struct JumpTable {
|
||||||
JumpTable(unsigned R, unsigned J, MachineBasicBlock *M,
|
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
|
/// Reg - the virtual register containing the index of the jump table entry
|
||||||
//. to jump to.
|
//. to jump to.
|
||||||
@ -120,7 +120,7 @@ public:
|
|||||||
struct JumpTableHeader {
|
struct JumpTableHeader {
|
||||||
JumpTableHeader(uint64_t F, uint64_t L, Value* SV, MachineBasicBlock* H,
|
JumpTableHeader(uint64_t F, uint64_t L, Value* SV, MachineBasicBlock* H,
|
||||||
bool E = false):
|
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 First;
|
||||||
uint64_t Last;
|
uint64_t Last;
|
||||||
Value *SValue;
|
Value *SValue;
|
||||||
@ -131,7 +131,7 @@ public:
|
|||||||
|
|
||||||
struct BitTestCase {
|
struct BitTestCase {
|
||||||
BitTestCase(uint64_t M, MachineBasicBlock* T, MachineBasicBlock* Tr):
|
BitTestCase(uint64_t M, MachineBasicBlock* T, MachineBasicBlock* Tr):
|
||||||
Mask(M), ThisBB(T), TargetBB(Tr) { };
|
Mask(M), ThisBB(T), TargetBB(Tr) { }
|
||||||
uint64_t Mask;
|
uint64_t Mask;
|
||||||
MachineBasicBlock* ThisBB;
|
MachineBasicBlock* ThisBB;
|
||||||
MachineBasicBlock* TargetBB;
|
MachineBasicBlock* TargetBB;
|
||||||
@ -145,7 +145,7 @@ public:
|
|||||||
MachineBasicBlock* P, MachineBasicBlock* D,
|
MachineBasicBlock* P, MachineBasicBlock* D,
|
||||||
const BitTestInfo& C):
|
const BitTestInfo& C):
|
||||||
First(F), Range(R), SValue(SV), Reg(Rg), Emitted(E),
|
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 First;
|
||||||
uint64_t Range;
|
uint64_t Range;
|
||||||
Value *SValue;
|
Value *SValue;
|
||||||
|
@ -47,7 +47,7 @@ namespace llvm {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
static char ID; // Pass identifcation, replacement for typeid
|
static char ID; // Pass identifcation, replacement for typeid
|
||||||
SimpleRegisterCoalescing() : MachineFunctionPass((intptr_t)&ID) {};
|
SimpleRegisterCoalescing() : MachineFunctionPass((intptr_t)&ID) {}
|
||||||
|
|
||||||
struct CopyRec {
|
struct CopyRec {
|
||||||
MachineInstr *MI;
|
MachineInstr *MI;
|
||||||
|
@ -40,7 +40,7 @@ namespace llvm {
|
|||||||
sys::Path Filename;
|
sys::Path Filename;
|
||||||
bool DeleteIt;
|
bool DeleteIt;
|
||||||
public:
|
public:
|
||||||
FileRemover(const sys::Path &filename, bool deleteIt = true)
|
explicit FileRemover(const sys::Path &filename, bool deleteIt = true)
|
||||||
: Filename(filename), DeleteIt(deleteIt) {}
|
: Filename(filename), DeleteIt(deleteIt) {}
|
||||||
|
|
||||||
~FileRemover() {
|
~FileRemover() {
|
||||||
|
@ -32,7 +32,7 @@ namespace llvm {
|
|||||||
EM_386 = 3
|
EM_386 = 3
|
||||||
};
|
};
|
||||||
|
|
||||||
TargetELFWriterInfo(MachineType machine) : EMachine(machine) {}
|
explicit TargetELFWriterInfo(MachineType machine) : EMachine(machine) {}
|
||||||
virtual ~TargetELFWriterInfo() {}
|
virtual ~TargetELFWriterInfo() {}
|
||||||
|
|
||||||
unsigned short getEMachine() const { return EMachine; }
|
unsigned short getEMachine() const { return EMachine; }
|
||||||
|
@ -844,7 +844,7 @@ public:
|
|||||||
bool isByVal;
|
bool isByVal;
|
||||||
|
|
||||||
ArgListEntry() : isSExt(false), isZExt(false), isInReg(false),
|
ArgListEntry() : isSExt(false), isZExt(false), isInReg(false),
|
||||||
isSRet(false), isNest(false), isByVal(false) { };
|
isSRet(false), isNest(false), isByVal(false) { }
|
||||||
};
|
};
|
||||||
typedef std::vector<ArgListEntry> ArgListTy;
|
typedef std::vector<ArgListEntry> ArgListTy;
|
||||||
virtual std::pair<SDOperand, SDOperand>
|
virtual std::pair<SDOperand, SDOperand>
|
||||||
|
@ -221,7 +221,7 @@ protected:
|
|||||||
std::vector<DIEValue *> Values;
|
std::vector<DIEValue *> Values;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DIE(unsigned Tag)
|
explicit DIE(unsigned Tag)
|
||||||
: Abbrev(Tag, DW_CHILDREN_no)
|
: Abbrev(Tag, DW_CHILDREN_no)
|
||||||
, Offset(0)
|
, Offset(0)
|
||||||
, Size(0)
|
, Size(0)
|
||||||
@ -304,7 +304,7 @@ public:
|
|||||||
///
|
///
|
||||||
unsigned Type;
|
unsigned Type;
|
||||||
|
|
||||||
DIEValue(unsigned T)
|
explicit DIEValue(unsigned T)
|
||||||
: Type(T)
|
: Type(T)
|
||||||
{}
|
{}
|
||||||
virtual ~DIEValue() {}
|
virtual ~DIEValue() {}
|
||||||
@ -344,7 +344,7 @@ private:
|
|||||||
uint64_t Integer;
|
uint64_t Integer;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DIEInteger(uint64_t I) : DIEValue(isInteger), Integer(I) {}
|
explicit DIEInteger(uint64_t I) : DIEValue(isInteger), Integer(I) {}
|
||||||
|
|
||||||
// Implement isa/cast/dyncast.
|
// Implement isa/cast/dyncast.
|
||||||
static bool classof(const DIEInteger *) { return true; }
|
static bool classof(const DIEInteger *) { return true; }
|
||||||
@ -396,7 +396,7 @@ class DIEString : public DIEValue {
|
|||||||
public:
|
public:
|
||||||
const std::string String;
|
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.
|
// Implement isa/cast/dyncast.
|
||||||
static bool classof(const DIEString *) { return true; }
|
static bool classof(const DIEString *) { return true; }
|
||||||
@ -435,7 +435,7 @@ public:
|
|||||||
|
|
||||||
const DWLabel Label;
|
const DWLabel Label;
|
||||||
|
|
||||||
DIEDwarfLabel(const DWLabel &L) : DIEValue(isLabel), Label(L) {}
|
explicit DIEDwarfLabel(const DWLabel &L) : DIEValue(isLabel), Label(L) {}
|
||||||
|
|
||||||
// Implement isa/cast/dyncast.
|
// Implement isa/cast/dyncast.
|
||||||
static bool classof(const DIEDwarfLabel *) { return true; }
|
static bool classof(const DIEDwarfLabel *) { return true; }
|
||||||
@ -473,7 +473,8 @@ class DIEObjectLabel : public DIEValue {
|
|||||||
public:
|
public:
|
||||||
const std::string Label;
|
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.
|
// Implement isa/cast/dyncast.
|
||||||
static bool classof(const DIEObjectLabel *) { return true; }
|
static bool classof(const DIEObjectLabel *) { return true; }
|
||||||
@ -553,7 +554,7 @@ class DIEntry : public DIEValue {
|
|||||||
public:
|
public:
|
||||||
DIE *Entry;
|
DIE *Entry;
|
||||||
|
|
||||||
DIEntry(DIE *E) : DIEValue(isEntry), Entry(E) {}
|
explicit DIEntry(DIE *E) : DIEValue(isEntry), Entry(E) {}
|
||||||
|
|
||||||
// Implement isa/cast/dyncast.
|
// Implement isa/cast/dyncast.
|
||||||
static bool classof(const DIEntry *) { return true; }
|
static bool classof(const DIEntry *) { return true; }
|
||||||
@ -1117,7 +1118,7 @@ private:
|
|||||||
std::vector<MachineMove> Moves;
|
std::vector<MachineMove> Moves;
|
||||||
|
|
||||||
FunctionDebugFrameInfo(unsigned Num, const std::vector<MachineMove> &M):
|
FunctionDebugFrameInfo(unsigned Num, const std::vector<MachineMove> &M):
|
||||||
Number(Num), Moves(M) { };
|
Number(Num), Moves(M) { }
|
||||||
};
|
};
|
||||||
|
|
||||||
std::vector<FunctionDebugFrameInfo> DebugFrames;
|
std::vector<FunctionDebugFrameInfo> DebugFrames;
|
||||||
@ -2745,7 +2746,7 @@ private:
|
|||||||
bool hC, bool hL,
|
bool hC, bool hL,
|
||||||
const std::vector<MachineMove> &M):
|
const std::vector<MachineMove> &M):
|
||||||
FnName(FN), Number(Num), PersonalityIndex(P),
|
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;
|
||||||
|
@ -26,7 +26,7 @@ namespace llvm {
|
|||||||
std::vector<unsigned> regUse_;
|
std::vector<unsigned> regUse_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PhysRegTracker(const MRegisterInfo& mri)
|
explicit PhysRegTracker(const MRegisterInfo& mri)
|
||||||
: mri_(&mri),
|
: mri_(&mri),
|
||||||
regUse_(mri_->getNumRegs(), 0) {
|
regUse_(mri_->getNumRegs(), 0) {
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user