More explicit keywords.
authorDan Gohman <gohman@apple.com>
Thu, 2 Aug 2007 21:21:54 +0000 (21:21 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 2 Aug 2007 21:21:54 +0000 (21:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40757 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/BranchFolding.cpp
lib/CodeGen/VirtRegMap.h
lib/Target/ARM/ARMISelLowering.h
lib/Target/Alpha/AlphaISelLowering.h
lib/Target/IA64/IA64ISelLowering.h
lib/Target/Mips/MipsISelLowering.h
lib/Target/PowerPC/PPCISelLowering.h
lib/Target/X86/X86ISelLowering.h

index 0fca98517946c3c33267441c850e9bd2d4cfb699..055302f153a5029e61ebe0d4090076b60c69814b 100644 (file)
@@ -46,7 +46,7 @@ namespace {
 
   struct BranchFolder : public MachineFunctionPass {
     static char ID;
-    BranchFolder(bool defaultEnableTailMerge) : 
+    explicit BranchFolder(bool defaultEnableTailMerge) : 
         MachineFunctionPass((intptr_t)&ID) {
           switch (FlagEnableTailMerge) {
           case cl::BOU_UNSET: EnableTailMerge = defaultEnableTailMerge; break;
index b7cbe51cea3217504b37ebe649f4542619130af0..e5d4b220fe08817221e7f03f4c1dda4fc6fc4199 100644 (file)
@@ -75,7 +75,7 @@ namespace llvm {
     void operator=(const VirtRegMap&); // DO NOT IMPLEMENT
 
   public:
-    VirtRegMap(MachineFunction &mf);
+    explicit VirtRegMap(MachineFunction &mf);
 
     void grow();
 
index 318657eb8e2a8c3194ae2d483919e6112afd1113..aba6ab3475a0be39a65459ddab43749ecc975d57 100644 (file)
@@ -76,7 +76,7 @@ namespace llvm {
   class ARMTargetLowering : public TargetLowering {
     int VarArgsFrameIndex;            // FrameIndex for start of varargs area.
   public:
-    ARMTargetLowering(TargetMachine &TM);
+    explicit ARMTargetLowering(TargetMachine &TM);
 
     virtual SDOperand LowerOperation(SDOperand Op, SelectionDAG &DAG);
     virtual const char *getTargetNodeName(unsigned Opcode) const;
index 24e40a5576456155d9dc11ce434f292880211480..291a56065d831753748ddfa979b5e7616d9fd0f5 100644 (file)
@@ -64,7 +64,7 @@ namespace llvm {
     int VarArgsBase;    // What is the base FrameIndex
     bool useITOF;
   public:
-    AlphaTargetLowering(TargetMachine &TM);
+    explicit AlphaTargetLowering(TargetMachine &TM);
     
     /// LowerOperation - Provide custom lowering hooks for some operations.
     ///
index 6bc55348ce93ce36c797de6297077a04d70b7b62..4a4e77186fb7ebc2b4f1f7435317197b33baf38a 100644 (file)
@@ -43,7 +43,7 @@ namespace llvm {
     unsigned GP, SP, RP; // FIXME - clean this mess up
          
   public:
-    IA64TargetLowering(TargetMachine &TM);
+    explicit IA64TargetLowering(TargetMachine &TM);
 
     unsigned VirtGPR; // this is public so it can be accessed in the selector
                       // for ISD::RET. add an accessor instead? FIXME
index 0199175a03f38afd6787abf149000a678844a378..4a62c94afeb351c51b4a681c4f857b0bc43a324a 100644 (file)
@@ -53,7 +53,7 @@ namespace llvm {
     // const MipsSubtarget &MipsSubTarget;
   public:
 
-    MipsTargetLowering(MipsTargetMachine &TM);
+    explicit MipsTargetLowering(MipsTargetMachine &TM);
 
     /// LowerOperation - Provide custom lowering hooks for some operations.
     virtual SDOperand LowerOperation(SDOperand Op, SelectionDAG &DAG);
index 245fe53e5a764df32eeb3835ace01e0cfc92dde0..b6b52ef31e146b9821a23de1301b9552549c9e1e 100644 (file)
@@ -186,7 +186,7 @@ namespace llvm {
     int ReturnAddrIndex;              // FrameIndex for return slot.
     const PPCSubtarget &PPCSubTarget;
   public:
-    PPCTargetLowering(PPCTargetMachine &TM);
+    explicit PPCTargetLowering(PPCTargetMachine &TM);
     
     /// getTargetNodeName() - This method returns the name of a target specific
     /// DAG node.
index ef48095547eb18eeeda26cb77edad1eed7358648..55c34a3bbcb3acfc64973c7fcabeb8ef7968b0b3 100644 (file)
@@ -286,7 +286,7 @@ namespace llvm {
     int BytesToPopOnReturn;           // Number of arg bytes ret should pop.
     int BytesCallerReserves;          // Number of arg bytes caller makes.
   public:
-    X86TargetLowering(TargetMachine &TM);
+    explicit X86TargetLowering(TargetMachine &TM);
 
     // Return the number of bytes that a function should pop when it returns (in
     // addition to the space used by the return address).