llvm.org GIT mirror llvm / 81975f6
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 Dan Gohman 13 years ago
12 changed file(s) with 27 addition(s) and 26 deletion(s). Raw diff Collapse all Expand all
118118 unsigned NumNodes;
119119
120120 public:
121 FoldingSetImpl(unsigned Log2InitSize = 6);
121 explicit FoldingSetImpl(unsigned Log2InitSize = 6);
122122 virtual ~FoldingSetImpl();
123123
124124 // Forward declaration.
231231 }
232232
233233 public:
234 FoldingSet(unsigned Log2InitSize = 6)
234 explicit FoldingSet(unsigned Log2InitSize = 6)
235235 : FoldingSetImpl(Log2InitSize)
236236 {}
237237
9595 unsigned def;
9696 unsigned reg;
9797 SmallVector kills;
98 VNInfo() : def(~1U), reg(0) {};
99 VNInfo(unsigned d, unsigned r) : def(d), reg(r) {};
98 VNInfo() : def(~1U), reg(0) {}
99 VNInfo(unsigned d, unsigned r) : def(d), reg(r) {}
100100 };
101101 private:
102102 SmallVector ValueNumberInfo;
3535
3636 public:
3737 explicit MachineConstantPoolValue(const Type *ty) : Ty(ty) {}
38 virtual ~MachineConstantPoolValue() {};
38 virtual ~MachineConstantPoolValue() {}
3939
4040 /// getType - get type of this MachineConstantPoolValue.
4141 ///
7272 /// of type are accessed/created with MF::getInfo and destroyed when the
7373 /// MachineFunction is destroyed.
7474 struct MachineFunctionInfo {
75 virtual ~MachineFunctionInfo() {};
75 virtual ~MachineFunctionInfo() {}
7676 };
7777
7878 class MachineFunction : private Annotation {
5454 public:
5555 RegScavenger()
5656 : MBB(NULL), NumPhysRegs(0), Tracking(false),
57 ScavengingFrameIndex(-1), ScavengedReg(0), ScavengedRC(NULL) {};
57 ScavengingFrameIndex(-1), ScavengedReg(0), ScavengedRC(NULL) {}
5858
5959 explicit RegScavenger(MachineBasicBlock *mbb)
6060 : MBB(mbb), NumPhysRegs(0), Tracking(false),
61 ScavengingFrameIndex(-1), ScavengedReg(0), ScavengedRC(NULL) {};
61 ScavengingFrameIndex(-1), ScavengedReg(0), ScavengedRC(NULL) {}
6262
6363 /// enterBasicBlock - Start tracking liveness from the begin of the specific
6464 /// basic block.
103103 };
104104 struct JumpTable {
105105 JumpTable(unsigned R, unsigned J, MachineBasicBlock *M,
106 MachineBasicBlock *D): Reg(R), JTI(J), MBB(M), Default(D) {};
106 MachineBasicBlock *D): Reg(R), JTI(J), MBB(M), Default(D) {}
107107
108108 /// Reg - the virtual register containing the index of the jump table entry
109109 //. to jump to.
119119 struct JumpTableHeader {
120120 JumpTableHeader(uint64_t F, uint64_t L, Value* SV, MachineBasicBlock* H,
121121 bool E = false):
122 First(F), Last(L), SValue(SV), HeaderBB(H), Emitted(E) {};
122 First(F), Last(L), SValue(SV), HeaderBB(H), Emitted(E) {}
123123 uint64_t First;
124124 uint64_t Last;
125125 Value *SValue;
130130
131131 struct BitTestCase {
132132 BitTestCase(uint64_t M, MachineBasicBlock* T, MachineBasicBlock* Tr):
133 Mask(M), ThisBB(T), TargetBB(Tr) { };
133 Mask(M), ThisBB(T), TargetBB(Tr) { }
134134 uint64_t Mask;
135135 MachineBasicBlock* ThisBB;
136136 MachineBasicBlock* TargetBB;
144144 MachineBasicBlock* P, MachineBasicBlock* D,
145145 const BitTestInfo& C):
146146 First(F), Range(R), SValue(SV), Reg(Rg), Emitted(E),
147 Parent(P), Default(D), Cases(C) { };
147 Parent(P), Default(D), Cases(C) { }
148148 uint64_t First;
149149 uint64_t Range;
150150 Value *SValue;
4646
4747 public:
4848 static char ID; // Pass identifcation, replacement for typeid
49 SimpleRegisterCoalescing() : MachineFunctionPass((intptr_t)&ID) {};
49 SimpleRegisterCoalescing() : MachineFunctionPass((intptr_t)&ID) {}
5050
5151 struct CopyRec {
5252 MachineInstr *MI;
3939 sys::Path Filename;
4040 bool DeleteIt;
4141 public:
42 FileRemover(const sys::Path &filename, bool deleteIt = true)
42 explicit FileRemover(const sys::Path &filename, bool deleteIt = true)
4343 : Filename(filename), DeleteIt(deleteIt) {}
4444
4545 ~FileRemover() {
3131 EM_386 = 3
3232 };
3333
34 TargetELFWriterInfo(MachineType machine) : EMachine(machine) {}
34 explicit TargetELFWriterInfo(MachineType machine) : EMachine(machine) {}
3535 virtual ~TargetELFWriterInfo() {}
3636
3737 unsigned short getEMachine() const { return EMachine; }
843843 bool isByVal;
844844
845845 ArgListEntry() : isSExt(false), isZExt(false), isInReg(false),
846 isSRet(false), isNest(false), isByVal(false) { };
846 isSRet(false), isNest(false), isByVal(false) { }
847847 };
848848 typedef std::vector ArgListTy;
849849 virtual std::pair
220220 std::vector Values;
221221
222222 public:
223 DIE(unsigned Tag)
223 explicit DIE(unsigned Tag)
224224 : Abbrev(Tag, DW_CHILDREN_no)
225225 , Offset(0)
226226 , Size(0)
303303 ///
304304 unsigned Type;
305305
306 DIEValue(unsigned T)
306 explicit DIEValue(unsigned T)
307307 : Type(T)
308308 {}
309309 virtual ~DIEValue() {}
343343 uint64_t Integer;
344344
345345 public:
346 DIEInteger(uint64_t I) : DIEValue(isInteger), Integer(I) {}
346 explicit DIEInteger(uint64_t I) : DIEValue(isInteger), Integer(I) {}
347347
348348 // Implement isa/cast/dyncast.
349349 static bool classof(const DIEInteger *) { return true; }
395395 public:
396396 const std::string String;
397397
398 DIEString(const std::string &S) : DIEValue(isString), String(S) {}
398 explicit DIEString(const std::string &S) : DIEValue(isString), String(S) {}
399399
400400 // Implement isa/cast/dyncast.
401401 static bool classof(const DIEString *) { return true; }
434434
435435 const DWLabel Label;
436436
437 DIEDwarfLabel(const DWLabel &L) : DIEValue(isLabel), Label(L) {}
437 explicit DIEDwarfLabel(const DWLabel &L) : DIEValue(isLabel), Label(L) {}
438438
439439 // Implement isa/cast/dyncast.
440440 static bool classof(const DIEDwarfLabel *) { return true; }
472472 public:
473473 const std::string Label;
474474
475 DIEObjectLabel(const std::string &L) : DIEValue(isAsIsLabel), Label(L) {}
475 explicit DIEObjectLabel(const std::string &L)
476 : DIEValue(isAsIsLabel), Label(L) {}
476477
477478 // Implement isa/cast/dyncast.
478479 static bool classof(const DIEObjectLabel *) { return true; }
552553 public:
553554 DIE *Entry;
554555
555 DIEntry(DIE *E) : DIEValue(isEntry), Entry(E) {}
556 explicit DIEntry(DIE *E) : DIEValue(isEntry), Entry(E) {}
556557
557558 // Implement isa/cast/dyncast.
558559 static bool classof(const DIEntry *) { return true; }
11161117 std::vector Moves;
11171118
11181119 FunctionDebugFrameInfo(unsigned Num, const std::vector &M):
1119 Number(Num), Moves(M) { };
1120 Number(Num), Moves(M) { }
11201121 };
11211122
11221123 std::vector DebugFrames;
27442745 bool hC, bool hL,
27452746 const std::vector &M):
27462747 FnName(FN), Number(Num), PersonalityIndex(P),
2747 hasCalls(hC), hasLandingPads(hL), Moves(M) { };
2748 hasCalls(hC), hasLandingPads(hL), Moves(M) { }
27482749 };
27492750
27502751 std::vector EHFrames;
2525 std::vector regUse_;
2626
2727 public:
28 PhysRegTracker(const MRegisterInfo& mri)
28 explicit PhysRegTracker(const MRegisterInfo& mri)
2929 : mri_(&mri),
3030 regUse_(mri_->getNumRegs(), 0) {
3131 }