Fix a bunch of little errors that Clang complains about when its being pedantic
authorDouglas Gregor <dgregor@apple.com>
Sat, 19 Dec 2009 07:05:23 +0000 (07:05 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 19 Dec 2009 07:05:23 +0000 (07:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91764 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCAssembler.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/ELF.h
lib/CodeGen/PBQP/GraphBase.h
lib/CodeGen/PBQP/HeuristicSolver.h
lib/CodeGen/RegAllocLinearScan.cpp
lib/CodeGen/SimpleRegisterCoalescing.h
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
lib/Target/Mips/MipsSubtarget.h
lib/Transforms/Hello/Hello.cpp

index 86569271e7ca80751b8164fbb7660edb05f432f4..be017bf0e4c172c76bb92240d8cc1f3bf8c09c77 100644 (file)
@@ -76,7 +76,7 @@ public:
   virtual uint64_t getMaxFileSize() const {
     assert(0 && "Invalid getMaxFileSize call!");
     return 0;
-  };
+  }
 
   /// @name Assembler Backend Support
   /// @{
index 44fd176a79e55c20cd85ec6ef21961fe7d96e35e..74618e0dbca95fd0682e96c79a18194f6ee04b67 100644 (file)
@@ -236,7 +236,7 @@ namespace {
     const MCSection *S;
     unsigned Alignment;
     SmallVector<unsigned, 4> CPEs;
-    SectionCPs(const MCSection *s, unsigned a) : S(s), Alignment(a) {};
+    SectionCPs(const MCSection *s, unsigned a) : S(s), Alignment(a) {}
   };
 }
 
index e303ebb0de91ec5ddca6f390e04db6f0381a2ac9..cb5a8c0eae1d3a42c119fbc62afd28de64e78659 100644 (file)
@@ -82,14 +82,14 @@ namespace llvm {
     const GlobalValue *getGlobalValue() const {
       assert(SourceType == isGV && "This is not a global value");
       return Source.GV;
-    };
+    }
 
     // getExternalSym - If this is an external symbol which originated the
     // elf symbol, return a reference to it.
     const char *getExternalSymbol() const {
       assert(SourceType == isExtSym && "This is not an external symbol");
       return Source.Ext;
-    };
+    }
 
     // getGV - From a global value return a elf symbol to represent it
     static ELFSym *getGV(const GlobalValue *GV, unsigned Bind,
index cc3e017adda13b51c5f112b6f668bb1a28dc5b2f..0c7493b8957f22d7e06b156adb6a4f55fdb5b866 100644 (file)
@@ -298,7 +298,7 @@ public:
 
     for (ConstAdjEdgeIterator adjEdgeItr = adjEdgesBegin(node1Itr),
          adjEdgeEnd = adjEdgesEnd(node1Itr);
-         adjEdgeItr != adjEdgesEnd; ++adjEdgeItr) {
+         adjEdgeItr != adjEdgeEnd; ++adjEdgeItr) {
       if ((getEdgeNode1Itr(*adjEdgeItr) == node2Itr) ||
           (getEdgeNode2Itr(*adjEdgeItr) == node2Itr)) {
         return *adjEdgeItr;
index e786246b4e05185e8bf420f5ae4a1f7a29cb4d5d..16708779e09ded02a73321c68f9c91891aab1228 100644 (file)
@@ -536,7 +536,7 @@ private:
       else reductionFinished = true;
     }
       
-  };
+  }
 
   void processR1() {
 
index c02d47b9a38483c7a4f7de42fbe0bff07f41053f..9e97d89c62e129ac31b6061b698737ce5f9927ad 100644 (file)
@@ -891,7 +891,7 @@ namespace {
     const RALinScan &Allocator;
 
   public:
-    WeightCompare(const RALinScan &Alloc) : Allocator(Alloc) {};
+    WeightCompare(const RALinScan &Alloc) : Allocator(Alloc) {}
 
     typedef std::pair<unsigned, float> RegWeightPair;
     bool operator()(const RegWeightPair &LHS, const RegWeightPair &RHS) const {
index 605a7404c2006f40d2c61cd619768964d966ff80..f668064ab08eb81af462766ce14885a7101699fc 100644 (file)
@@ -33,7 +33,7 @@ namespace llvm {
     MachineInstr *MI;
     unsigned LoopDepth;
     CopyRec(MachineInstr *mi, unsigned depth)
-      : MI(mi), LoopDepth(depth) {};
+      : MI(mi), LoopDepth(depth) {}
   };
 
   class SimpleRegisterCoalescing : public MachineFunctionPass,
@@ -85,7 +85,7 @@ namespace llvm {
     bool coalesceFunction(MachineFunction &mf, RegallocQuery &) {
       // This runs as an independent pass, so don't do anything.
       return false;
-    };
+    }
 
     /// print - Implement the dump method.
     virtual void print(raw_ostream &O, const Module* = 0) const;
index 22bd80e594ee873097cf5ed3549ee7c0430cebe3..d313f3ef8c6a85dab8cad8d7c20e23168b6a46b8 100644 (file)
@@ -78,7 +78,7 @@ namespace {
       MachineBasicBlock::iterator MBBI;
       bool Merged;
       MemOpQueueEntry(int o, int p, MachineBasicBlock::iterator i)
-        : Offset(o), Position(p), MBBI(i), Merged(false) {};
+        : Offset(o), Position(p), MBBI(i), Merged(false) {}
     };
     typedef SmallVector<MemOpQueueEntry,8> MemOpQueue;
     typedef MemOpQueue::iterator MemOpQueueIter;
index 1d6f87d8c0630f7f92b285ecb0716c6886063df1..2d5fd226e6f93a1b424cdf227646815b3a9731fa 100644 (file)
@@ -102,21 +102,21 @@ public:
   bool isMips1() const { return MipsArchVersion == Mips1; }
 
   bool isLittle() const { return IsLittle; }
-  bool isFP64bit() const { return IsFP64bit; };
-  bool isGP64bit() const { return IsGP64bit; };
-  bool isGP32bit() const { return !IsGP64bit; };
-  bool isSingleFloat() const { return IsSingleFloat; };
-  bool isNotSingleFloat() const { return !IsSingleFloat; };
-  bool hasVFPU() const { return HasVFPU; };
-  bool isLinux() const { return IsLinux; };
+  bool isFP64bit() const { return IsFP64bit; }
+  bool isGP64bit() const { return IsGP64bit; }
+  bool isGP32bit() const { return !IsGP64bit; }
+  bool isSingleFloat() const { return IsSingleFloat; }
+  bool isNotSingleFloat() const { return !IsSingleFloat; }
+  bool hasVFPU() const { return HasVFPU; }
+  bool isLinux() const { return IsLinux; }
 
   /// Features related to the presence of specific instructions.
-  bool hasSEInReg()   const { return HasSEInReg; };
-  bool hasCondMov()   const { return HasCondMov; };
-  bool hasMulDivAdd() const { return HasMulDivAdd; };
-  bool hasMinMax()    const { return HasMinMax; };
-  bool hasSwap()      const { return HasSwap; };
-  bool hasBitCount()  const { return HasBitCount; };
+  bool hasSEInReg()   const { return HasSEInReg; }
+  bool hasCondMov()   const { return HasCondMov; }
+  bool hasMulDivAdd() const { return HasMulDivAdd; }
+  bool hasMinMax()    const { return HasMinMax; }
+  bool hasSwap()      const { return HasSwap; }
+  bool hasBitCount()  const { return HasBitCount; }
 };
 } // End llvm namespace
 
index 91534a754a13e1d00c9b6deab59bfa55e4b31f9a..eac4e17b15ed3a72f95d7d144d1eaacda7e7231f 100644 (file)
@@ -56,7 +56,7 @@ namespace {
     // We don't modify the program, so we preserve all analyses
     virtual void getAnalysisUsage(AnalysisUsage &AU) const {
       AU.setPreservesAll();
-    };
+    }
   };
 }