[llvm-commits] [llvm] r90934 - in /llvm/trunk: include/llvm/ADT/DenseSet.h utils/TableGen/CodeEmitterGen.h utils/TableGen/CodeGenDAGPatterns.h utils/TableGen/RegisterInfoEmitter.cpp

Daniel Dunbar daniel at zuster.org
Tue Dec 8 18:58:09 PST 2009


Author: ddunbar
Date: Tue Dec  8 20:58:09 2009
New Revision: 90934

URL: http://llvm.org/viewvc/llvm-project?rev=90934&view=rev
Log:
Remove unneeded ';' and a class/struct mismatch (noticed by clang).

Modified:
    llvm/trunk/include/llvm/ADT/DenseSet.h
    llvm/trunk/utils/TableGen/CodeEmitterGen.h
    llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h
    llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp

Modified: llvm/trunk/include/llvm/ADT/DenseSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/DenseSet.h?rev=90934&r1=90933&r2=90934&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/DenseSet.h (original)
+++ llvm/trunk/include/llvm/ADT/DenseSet.h Tue Dec  8 20:58:09 2009
@@ -73,7 +73,7 @@
     const ValueT& operator*() { return I->first; }
     const ValueT* operator->() { return &I->first; }
 
-    ConstIterator& operator++() { ++I; return *this; };
+    ConstIterator& operator++() { ++I; return *this; }
     bool operator==(const ConstIterator& X) const { return I == X.I; }
     bool operator!=(const ConstIterator& X) const { return I != X.I; }
   };

Modified: llvm/trunk/utils/TableGen/CodeEmitterGen.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeEmitterGen.h?rev=90934&r1=90933&r2=90934&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/CodeEmitterGen.h (original)
+++ llvm/trunk/utils/TableGen/CodeEmitterGen.h Tue Dec  8 20:58:09 2009
@@ -23,7 +23,7 @@
 
 class RecordVal;
 class BitsInit;
-class Init;
+struct Init;
 
 class CodeEmitterGen : public TableGenBackend {
   RecordKeeper &Records;

Modified: llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h?rev=90934&r1=90933&r2=90934&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h (original)
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h Tue Dec  8 20:58:09 2009
@@ -445,7 +445,7 @@
                  const std::vector<Record*> &dstregs,
                  unsigned complexity):
     Predicates(preds), SrcPattern(src), DstPattern(dst), Dstregs(dstregs),
-    AddedComplexity(complexity) {};
+    AddedComplexity(complexity) {}
 
   ListInit        *Predicates;  // Top level predicate conditions to match.
   TreePatternNode *SrcPattern;  // Source pattern to match.

Modified: llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp?rev=90934&r1=90933&r2=90934&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp Tue Dec  8 20:58:09 2009
@@ -162,7 +162,7 @@
 
 public:
   RegisterSorter(std::map<Record*, std::set<Record*>, LessRecord> &RS)
-    : RegisterSubRegs(RS) {};
+    : RegisterSubRegs(RS) {}
 
   bool operator()(Record *RegA, Record *RegB) {
     // B is sub-register of A.





More information about the llvm-commits mailing list