mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53179 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eccfb6a165
commit
1002c02034
@ -317,7 +317,7 @@ public:
|
|||||||
template<class T>
|
template<class T>
|
||||||
class FoldingSetIterator : public FoldingSetIteratorImpl {
|
class FoldingSetIterator : public FoldingSetIteratorImpl {
|
||||||
public:
|
public:
|
||||||
FoldingSetIterator(void **Bucket) : FoldingSetIteratorImpl(Bucket) {}
|
explicit FoldingSetIterator(void **Bucket) : FoldingSetIteratorImpl(Bucket) {}
|
||||||
|
|
||||||
T &operator*() const {
|
T &operator*() const {
|
||||||
return *static_cast<T*>(NodePtr);
|
return *static_cast<T*>(NodePtr);
|
||||||
@ -345,7 +345,7 @@ class FoldingSetBucketIteratorImpl {
|
|||||||
protected:
|
protected:
|
||||||
void *Ptr;
|
void *Ptr;
|
||||||
|
|
||||||
FoldingSetBucketIteratorImpl(void **Bucket);
|
explicit FoldingSetBucketIteratorImpl(void **Bucket);
|
||||||
|
|
||||||
FoldingSetBucketIteratorImpl(void **Bucket, bool)
|
FoldingSetBucketIteratorImpl(void **Bucket, bool)
|
||||||
: Ptr(reinterpret_cast<void*>(Bucket)) {}
|
: Ptr(reinterpret_cast<void*>(Bucket)) {}
|
||||||
@ -369,7 +369,7 @@ public:
|
|||||||
template<class T>
|
template<class T>
|
||||||
class FoldingSetBucketIterator : public FoldingSetBucketIteratorImpl {
|
class FoldingSetBucketIterator : public FoldingSetBucketIteratorImpl {
|
||||||
public:
|
public:
|
||||||
FoldingSetBucketIterator(void **Bucket) :
|
explicit FoldingSetBucketIterator(void **Bucket) :
|
||||||
FoldingSetBucketIteratorImpl(Bucket) {}
|
FoldingSetBucketIteratorImpl(Bucket) {}
|
||||||
|
|
||||||
FoldingSetBucketIterator(void **Bucket, bool) :
|
FoldingSetBucketIterator(void **Bucket, bool) :
|
||||||
@ -394,7 +394,7 @@ template <typename T>
|
|||||||
class FoldingSetNodeWrapper : public FoldingSetNode {
|
class FoldingSetNodeWrapper : public FoldingSetNode {
|
||||||
T data;
|
T data;
|
||||||
public:
|
public:
|
||||||
FoldingSetNodeWrapper(const T& x) : data(x) {}
|
explicit FoldingSetNodeWrapper(const T& x) : data(x) {}
|
||||||
virtual ~FoldingSetNodeWrapper() {}
|
virtual ~FoldingSetNodeWrapper() {}
|
||||||
|
|
||||||
template<typename A1>
|
template<typename A1>
|
||||||
|
@ -611,7 +611,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
friend class LoopInfoBase<BlockT>;
|
friend class LoopInfoBase<BlockT>;
|
||||||
LoopBase(BlockT *BB) : ParentLoop(0) {
|
explicit LoopBase(BlockT *BB) : ParentLoop(0) {
|
||||||
Blocks.push_back(BB);
|
Blocks.push_back(BB);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -44,7 +44,7 @@ class Timer {
|
|||||||
bool Started; // Has this time variable ever been started?
|
bool Started; // Has this time variable ever been started?
|
||||||
TimerGroup *TG; // The TimerGroup this Timer is in.
|
TimerGroup *TG; // The TimerGroup this Timer is in.
|
||||||
public:
|
public:
|
||||||
Timer(const std::string &N);
|
explicit Timer(const std::string &N);
|
||||||
Timer(const std::string &N, TimerGroup &tg);
|
Timer(const std::string &N, TimerGroup &tg);
|
||||||
Timer(const Timer &T);
|
Timer(const Timer &T);
|
||||||
~Timer();
|
~Timer();
|
||||||
@ -116,7 +116,7 @@ class TimeRegion {
|
|||||||
Timer &T;
|
Timer &T;
|
||||||
TimeRegion(const TimeRegion &); // DO NOT IMPLEMENT
|
TimeRegion(const TimeRegion &); // DO NOT IMPLEMENT
|
||||||
public:
|
public:
|
||||||
TimeRegion(Timer &t) : T(t) {
|
explicit TimeRegion(Timer &t) : T(t) {
|
||||||
T.startTimer();
|
T.startTimer();
|
||||||
}
|
}
|
||||||
~TimeRegion() {
|
~TimeRegion() {
|
||||||
@ -131,7 +131,7 @@ public:
|
|||||||
/// is primarily used for debugging and for hunting performance problems.
|
/// is primarily used for debugging and for hunting performance problems.
|
||||||
///
|
///
|
||||||
struct NamedRegionTimer : public TimeRegion {
|
struct NamedRegionTimer : public TimeRegion {
|
||||||
NamedRegionTimer(const std::string &Name);
|
explicit NamedRegionTimer(const std::string &Name);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -145,7 +145,7 @@ class TimerGroup {
|
|||||||
unsigned NumTimers;
|
unsigned NumTimers;
|
||||||
std::vector<Timer> TimersToPrint;
|
std::vector<Timer> TimersToPrint;
|
||||||
public:
|
public:
|
||||||
TimerGroup(const std::string &name) : Name(name), NumTimers(0) {}
|
explicit TimerGroup(const std::string &name) : Name(name), NumTimers(0) {}
|
||||||
~TimerGroup() {
|
~TimerGroup() {
|
||||||
assert(NumTimers == 0 &&
|
assert(NumTimers == 0 &&
|
||||||
"TimerGroup destroyed before all contained timers!");
|
"TimerGroup destroyed before all contained timers!");
|
||||||
|
@ -30,7 +30,7 @@ namespace llvm {
|
|||||||
class BasicInliner {
|
class BasicInliner {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
BasicInliner(TargetData *T = NULL);
|
explicit BasicInliner(TargetData *T = NULL);
|
||||||
~BasicInliner();
|
~BasicInliner();
|
||||||
|
|
||||||
/// addFunction - Add function into the list of functions to process.
|
/// addFunction - Add function into the list of functions to process.
|
||||||
|
@ -122,8 +122,7 @@ class VISIBILITY_HIDDEN SelectionDAGLegalize {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
explicit SelectionDAGLegalize(SelectionDAG &DAG);
|
||||||
SelectionDAGLegalize(SelectionDAG &DAG);
|
|
||||||
|
|
||||||
/// getTypeAction - Return how we should legalize values of this type, either
|
/// getTypeAction - Return how we should legalize values of this type, either
|
||||||
/// it is already legal or we need to expand it into multiple registers of
|
/// it is already legal or we need to expand it into multiple registers of
|
||||||
|
@ -284,7 +284,7 @@ namespace {
|
|||||||
public SelectionDAG::DAGUpdateListener {
|
public SelectionDAG::DAGUpdateListener {
|
||||||
DAGTypeLegalizer &DTL;
|
DAGTypeLegalizer &DTL;
|
||||||
public:
|
public:
|
||||||
NodeUpdateListener(DAGTypeLegalizer &dtl) : DTL(dtl) {}
|
explicit NodeUpdateListener(DAGTypeLegalizer &dtl) : DTL(dtl) {}
|
||||||
|
|
||||||
virtual void NodeDeleted(SDNode *N, SDNode *E) {
|
virtual void NodeDeleted(SDNode *N, SDNode *E) {
|
||||||
assert(N->getNodeId() != DAGTypeLegalizer::Processed &&
|
assert(N->getNodeId() != DAGTypeLegalizer::Processed &&
|
||||||
|
@ -44,7 +44,7 @@ class ARMDAGToDAGISel : public SelectionDAGISel {
|
|||||||
const ARMSubtarget *Subtarget;
|
const ARMSubtarget *Subtarget;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ARMDAGToDAGISel(ARMTargetMachine &TM)
|
explicit ARMDAGToDAGISel(ARMTargetMachine &TM)
|
||||||
: SelectionDAGISel(Lowering), Lowering(TM),
|
: SelectionDAGISel(Lowering), Lowering(TM),
|
||||||
Subtarget(&TM.getSubtarget<ARMSubtarget>()) {
|
Subtarget(&TM.getSubtarget<ARMSubtarget>()) {
|
||||||
}
|
}
|
||||||
|
@ -227,7 +227,7 @@ class SPUDAGToDAGISel :
|
|||||||
unsigned GlobalBaseReg;
|
unsigned GlobalBaseReg;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SPUDAGToDAGISel(SPUTargetMachine &tm) :
|
explicit SPUDAGToDAGISel(SPUTargetMachine &tm) :
|
||||||
SelectionDAGISel(*tm.getTargetLowering()),
|
SelectionDAGISel(*tm.getTargetLowering()),
|
||||||
TM(tm),
|
TM(tm),
|
||||||
SPUtli(*tm.getTargetLowering())
|
SPUtli(*tm.getTargetLowering())
|
||||||
|
@ -40,7 +40,7 @@ namespace {
|
|||||||
IA64TargetLowering IA64Lowering;
|
IA64TargetLowering IA64Lowering;
|
||||||
unsigned GlobalBaseReg;
|
unsigned GlobalBaseReg;
|
||||||
public:
|
public:
|
||||||
IA64DAGToDAGISel(IA64TargetMachine &TM)
|
explicit IA64DAGToDAGISel(IA64TargetMachine &TM)
|
||||||
: SelectionDAGISel(IA64Lowering), IA64Lowering(*TM.getTargetLowering()) {}
|
: SelectionDAGISel(IA64Lowering), IA64Lowering(*TM.getTargetLowering()) {}
|
||||||
|
|
||||||
virtual bool runOnFunction(Function &Fn) {
|
virtual bool runOnFunction(Function &Fn) {
|
||||||
|
@ -61,7 +61,8 @@ class VISIBILITY_HIDDEN MipsDAGToDAGISel : public SelectionDAGISel {
|
|||||||
const MipsSubtarget &Subtarget;
|
const MipsSubtarget &Subtarget;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MipsDAGToDAGISel(MipsTargetMachine &tm) : SelectionDAGISel(MipsLowering),
|
explicit MipsDAGToDAGISel(MipsTargetMachine &tm) :
|
||||||
|
SelectionDAGISel(MipsLowering),
|
||||||
TM(tm), MipsLowering(*TM.getTargetLowering()),
|
TM(tm), MipsLowering(*TM.getTargetLowering()),
|
||||||
Subtarget(tm.getSubtarget<MipsSubtarget>()) {}
|
Subtarget(tm.getSubtarget<MipsSubtarget>()) {}
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ class VISIBILITY_HIDDEN PIC16DAGToDAGISel : public SelectionDAGISel {
|
|||||||
PIC16TargetLowering PIC16Lowering;
|
PIC16TargetLowering PIC16Lowering;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PIC16DAGToDAGISel(PIC16TargetMachine &tm) :
|
explicit PIC16DAGToDAGISel(PIC16TargetMachine &tm) :
|
||||||
SelectionDAGISel(PIC16Lowering),
|
SelectionDAGISel(PIC16Lowering),
|
||||||
TM(tm), PIC16Lowering(*TM.getTargetLowering()) {}
|
TM(tm), PIC16Lowering(*TM.getTargetLowering()) {}
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ namespace {
|
|||||||
const PPCSubtarget &PPCSubTarget;
|
const PPCSubtarget &PPCSubTarget;
|
||||||
unsigned GlobalBaseReg;
|
unsigned GlobalBaseReg;
|
||||||
public:
|
public:
|
||||||
PPCDAGToDAGISel(PPCTargetMachine &tm)
|
explicit PPCDAGToDAGISel(PPCTargetMachine &tm)
|
||||||
: SelectionDAGISel(PPCLowering), TM(tm),
|
: SelectionDAGISel(PPCLowering), TM(tm),
|
||||||
PPCLowering(*TM.getTargetLowering()),
|
PPCLowering(*TM.getTargetLowering()),
|
||||||
PPCSubTarget(*TM.getSubtargetImpl()) {}
|
PPCSubTarget(*TM.getSubtargetImpl()) {}
|
||||||
|
@ -35,7 +35,7 @@ class SparcDAGToDAGISel : public SelectionDAGISel {
|
|||||||
/// make the right decision when generating code for different targets.
|
/// make the right decision when generating code for different targets.
|
||||||
const SparcSubtarget &Subtarget;
|
const SparcSubtarget &Subtarget;
|
||||||
public:
|
public:
|
||||||
SparcDAGToDAGISel(TargetMachine &TM)
|
explicit SparcDAGToDAGISel(TargetMachine &TM)
|
||||||
: SelectionDAGISel(Lowering), Lowering(TM),
|
: SelectionDAGISel(Lowering), Lowering(TM),
|
||||||
Subtarget(TM.getSubtarget<SparcSubtarget>()) {
|
Subtarget(TM.getSubtarget<SparcSubtarget>()) {
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ namespace {
|
|||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct VISIBILITY_HIDDEN LeakDetectorImpl {
|
struct VISIBILITY_HIDDEN LeakDetectorImpl {
|
||||||
LeakDetectorImpl(const char* const name) : Cache(0), Name(name) { }
|
explicit LeakDetectorImpl(const char* const name) : Cache(0), Name(name) { }
|
||||||
|
|
||||||
// Because the most common usage pattern, by far, is to add a
|
// Because the most common usage pattern, by far, is to add a
|
||||||
// garbage object, then remove it immediately, we optimize this
|
// garbage object, then remove it immediately, we optimize this
|
||||||
|
@ -431,7 +431,7 @@ const Type *Type::LabelTy = new Type(Type::LabelTyID);
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
struct BuiltinIntegerType : public IntegerType {
|
struct BuiltinIntegerType : public IntegerType {
|
||||||
BuiltinIntegerType(unsigned W) : IntegerType(W) {}
|
explicit BuiltinIntegerType(unsigned W) : IntegerType(W) {}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const IntegerType *Type::Int1Ty = new BuiltinIntegerType(1);
|
const IntegerType *Type::Int1Ty = new BuiltinIntegerType(1);
|
||||||
|
@ -151,7 +151,7 @@ public:
|
|||||||
class BitsRecTy : public RecTy {
|
class BitsRecTy : public RecTy {
|
||||||
unsigned Size;
|
unsigned Size;
|
||||||
public:
|
public:
|
||||||
BitsRecTy(unsigned Sz) : Size(Sz) {}
|
explicit BitsRecTy(unsigned Sz) : Size(Sz) {}
|
||||||
|
|
||||||
unsigned getNumBits() const { return Size; }
|
unsigned getNumBits() const { return Size; }
|
||||||
|
|
||||||
@ -268,7 +268,7 @@ public:
|
|||||||
class ListRecTy : public RecTy {
|
class ListRecTy : public RecTy {
|
||||||
RecTy *Ty;
|
RecTy *Ty;
|
||||||
public:
|
public:
|
||||||
ListRecTy(RecTy *T) : Ty(T) {}
|
explicit ListRecTy(RecTy *T) : Ty(T) {}
|
||||||
|
|
||||||
RecTy *getElementType() const { return Ty; }
|
RecTy *getElementType() const { return Ty; }
|
||||||
|
|
||||||
@ -381,7 +381,7 @@ public:
|
|||||||
class RecordRecTy : public RecTy {
|
class RecordRecTy : public RecTy {
|
||||||
Record *Rec;
|
Record *Rec;
|
||||||
public:
|
public:
|
||||||
RecordRecTy(Record *R) : Rec(R) {}
|
explicit RecordRecTy(Record *R) : Rec(R) {}
|
||||||
|
|
||||||
Record *getRecord() const { return Rec; }
|
Record *getRecord() const { return Rec; }
|
||||||
|
|
||||||
@ -966,7 +966,7 @@ class Record {
|
|||||||
std::vector<Record*> SuperClasses;
|
std::vector<Record*> SuperClasses;
|
||||||
public:
|
public:
|
||||||
|
|
||||||
Record(const std::string &N) : Name(N) {}
|
explicit Record(const std::string &N) : Name(N) {}
|
||||||
~Record() {}
|
~Record() {}
|
||||||
|
|
||||||
const std::string &getName() const { return Name; }
|
const std::string &getName() const { return Name; }
|
||||||
|
Loading…
Reference in New Issue
Block a user