Fix -Wextra-semi warnings.
authorHans Wennborg <hans@hanshq.net>
Wed, 22 Jul 2015 20:46:11 +0000 (20:46 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 22 Jul 2015 20:46:11 +0000 (20:46 +0000)
Patch by Eugene Zelenko!

Differential Revision: http://reviews.llvm.org/D11400

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242930 91177308-0d34-0410-b5e6-96231b3b80d8

17 files changed:
include/llvm/Analysis/LazyCallGraph.h
include/llvm/Analysis/TargetLibraryInfo.h
include/llvm/Bitcode/ReaderWriter.h
include/llvm/CodeGen/MachineScheduler.h
include/llvm/CodeGen/ScheduleDAG.h
include/llvm/ExecutionEngine/ExecutionEngine.h
include/llvm/ExecutionEngine/RuntimeDyld.h
include/llvm/IR/DebugInfoMetadata.h
include/llvm/IR/DiagnosticPrinter.h
include/llvm/MC/MCLinkerOptimizationHint.h
include/llvm/MC/MCTargetAsmParser.h
lib/Analysis/ScalarEvolution.cpp
lib/ExecutionEngine/Orc/OrcMCJITReplacement.h
lib/IR/DiagnosticInfo.cpp
lib/Target/X86/X86CallFrameOptimization.cpp
lib/Target/X86/X86MachineFunctionInfo.h
lib/Transforms/Vectorize/SLPVectorizer.cpp

index b0b9068de34bf7a2d90f39053ecc94fcd8ed22a3..7cbc40f768ebcc4a90efe32f1995d799e1ec6211 100644 (file)
@@ -190,7 +190,7 @@ public:
 
     Function &getFunction() const {
       return F;
-    };
+    }
 
     iterator begin() const {
       return iterator(*G, Callees.begin(), Callees.end());
index e0a1ee378274a3e2aee5d52fd10c95f44cda1bce..98e450c867d4e67712cc0edd2f2e1b778fa5d72e 100644 (file)
@@ -201,13 +201,13 @@ public:
   }
   bool isFunctionVectorizable(StringRef F, unsigned VF) const {
     return Impl->isFunctionVectorizable(F, VF);
-  };
+  }
   bool isFunctionVectorizable(StringRef F) const {
     return Impl->isFunctionVectorizable(F);
-  };
+  }
   StringRef getVectorizedFunction(StringRef F, unsigned VF) const {
     return Impl->getVectorizedFunction(F, VF);
-  };
+  }
 
   /// \brief Tests if the function is both available and a candidate for
   /// optimized code generation.
index 452ec3bd0187ca29a51197385107529a4d2301d8..6f92e2e1b3c2bfca635837e99946702772d7290f 100644 (file)
@@ -159,7 +159,7 @@ namespace llvm {
     BitcodeDiagnosticInfo(std::error_code EC, DiagnosticSeverity Severity,
                           const Twine &Msg);
     void print(DiagnosticPrinter &DP) const override;
-    std::error_code getError() const { return EC; };
+    std::error_code getError() const { return EC; }
 
     static bool classof(const DiagnosticInfo *DI) {
       return DI->getKind() == DK_Bitcode;
index e80e14e5ccf75541f5d22a2bc229a157687554a6..dee2b7107a41377f9cb4fee80803c72520bc5c22 100644 (file)
@@ -915,7 +915,7 @@ public:
                   MachineBasicBlock::iterator End,
                   unsigned NumRegionInstrs) override {
     /* no configurable policy */
-  };
+  }
 
   /// PostRA scheduling does not track pressure.
   bool shouldTrackPressure() const override { return false; }
index 839131416560f5e7ed7d9ac0f1d0c5c26fe34254..539756ef5029bbc5a353d67a48c21e4125002062 100644 (file)
@@ -374,7 +374,7 @@ namespace llvm {
     /// correspond to schedulable entities (e.g. instructions) and do not have a
     /// valid ID. Consequently, always check for boundary nodes before accessing
     /// an assoicative data structure keyed on node ID.
-    bool isBoundaryNode() const { return NodeNum == BoundaryID; };
+    bool isBoundaryNode() const { return NodeNum == BoundaryID; }
 
     /// setNode - Assign the representative SDNode for this SUnit.
     /// This may be used during pre-regalloc scheduling.
index 87f5c6a20807588c8083648618b75e37e0ee9a4b..a7302602dcd839da11813a2756d81ed6a2b81b67 100644 (file)
@@ -481,7 +481,7 @@ public:
   }
 
 protected:
-  ExecutionEngine(const DataLayout DL) : DL(std::move(DL)){};
+  ExecutionEngine(const DataLayout DL) : DL(std::move(DL)){}
   explicit ExecutionEngine(DataLayout DL, std::unique_ptr<Module> M);
   explicit ExecutionEngine(std::unique_ptr<Module> M);
 
index a808d923116713e0554a70f4fe66bf06199de825..2b6e98287b16e41abef1c60f343c2a6640fc0e65 100644 (file)
@@ -87,7 +87,7 @@ public:
   /// \brief Memory Management.
   class MemoryManager {
   public:
-    virtual ~MemoryManager() {};
+    virtual ~MemoryManager() {}
 
     /// Allocate a memory block of (at least) the given size suitable for
     /// executable code. The SectionID is a unique identifier assigned by the
@@ -149,7 +149,7 @@ public:
   /// \brief Symbol resolution.
   class SymbolResolver {
   public:
-    virtual ~SymbolResolver() {};
+    virtual ~SymbolResolver() {}
 
     /// This method returns the address of the specified function or variable.
     /// It is used to resolve symbols during module linking.
index 957f807d1add36637a76c883387cafa4178c2ff8..ec49ffdcc1574a15ada0131c6b852bd7d89ba78e 100644 (file)
@@ -67,8 +67,8 @@ public:
 
   operator Metadata *() const { return const_cast<Metadata *>(MD); }
 
-  bool operator==(const TypedDINodeRef<T> &X) const { return MD == X.MD; };
-  bool operator!=(const TypedDINodeRef<T> &X) const { return MD != X.MD; };
+  bool operator==(const TypedDINodeRef<T> &X) const { return MD == X.MD; }
+  bool operator!=(const TypedDINodeRef<T> &X) const { return MD != X.MD; }
 
   /// \brief Create a reference.
   ///
index 735e3ad7a8b015656bfd859a6f3d6c7e7a2e29bb..1bcd73738b662f186915b0b5bdd9e913017b3f6c 100644 (file)
@@ -63,7 +63,7 @@ protected:
   raw_ostream &Stream;
 
 public:
-  DiagnosticPrinterRawOStream(raw_ostream &Stream) : Stream(Stream) {};
+  DiagnosticPrinterRawOStream(raw_ostream &Stream) : Stream(Stream) {}
 
   // Simple types.
   DiagnosticPrinter &operator<<(char C) override;
index 4b6f7ecc9fba61a8524ba86ce25904a52686c743..a519c4b71b033163b8d4ff500d1e177d0164e844 100644 (file)
@@ -160,7 +160,7 @@ class MCLOHContainer {
 public:
   typedef SmallVectorImpl<MCLOHDirective> LOHDirectives;
 
-  MCLOHContainer() : EmitSize(0) {};
+  MCLOHContainer() : EmitSize(0) {}
 
   /// Const accessor to the directives.
   const LOHDirectives &getDirectives() const {
index 36db3914f01746c67672032e74c819efe00ef7fa..112d1cf23cd03e1a429fc2e72ea92b0fc68421b3 100644 (file)
@@ -198,7 +198,7 @@ public:
     return nullptr;
   }
 
-  virtual void onLabelParsed(MCSymbol *Symbol) { };
+  virtual void onLabelParsed(MCSymbol *Symbol) { }
 };
 
 } // End llvm namespace
index 804005265cbe84f8018e52008b6340d73d5ecad4..459f1cc82b7e9a220a053921127405d54d599544 100644 (file)
@@ -6731,7 +6731,7 @@ ScalarEvolution::isLoopBackedgeGuardedByCond(const Loop *L,
     ScalarEvolution &SE;
 
     explicit ClearWalkingBEDominatingCondsOnExit(ScalarEvolution &SE)
-        : SE(SE){};
+        : SE(SE){}
 
     ~ClearWalkingBEDominatingCondsOnExit() {
       SE.WalkingBEDominatingConds = false;
index a097fdfe950845ac0a5c7084443ad27b41960ecf..0efbcbd915930d5f9e5c01fd04d5c22bc2fa5473 100644 (file)
@@ -290,7 +290,7 @@ private:
              "Incorrect number of Infos for Objects.");
       for (unsigned I = 0; I < Objects.size(); ++I)
         M.MemMgr.notifyObjectLoaded(&M, *Objects[I]);
-    };
+    }
 
   private:
     OrcMCJITReplacement &M;
index b8f77eda15a6dc3039793fbf4b103dcf525e5eb8..6612681d689ebaedbfb7aaa2d224663b96c4f3f1 100644 (file)
@@ -49,7 +49,7 @@ struct PassRemarksOpt {
                                "' in -pass-remarks: " + RegexError,
                            false);
     }
-  };
+  }
 };
 
 static PassRemarksOpt PassRemarksOptLoc;
index 031ba4ba9e66e69c4aeaea3d86b3eb15d4c3fb7d..323c5bfd40860046022b97c25244414df100045d 100644 (file)
@@ -54,7 +54,7 @@ private:
   struct CallContext {
     CallContext()
         : Call(nullptr), SPCopy(nullptr), ExpectedDist(0),
-          MovVector(4, nullptr), NoStackParams(false), UsePush(false){};
+          MovVector(4, nullptr), NoStackParams(false), UsePush(false){}
 
     // Actuall call instruction
     MachineInstr *Call;
index e6db9708b677ac9bdb543a850cdaa64b901dd2ef..253f40ace6353903cf667817d7e123dd274cc415 100644 (file)
@@ -100,7 +100,7 @@ private:
 public:
   X86MachineFunctionInfo() = default;
 
-  explicit X86MachineFunctionInfo(MachineFunction &MF) {};
+  explicit X86MachineFunctionInfo(MachineFunction &MF) {}
 
   bool getForceFramePointer() const { return ForceFramePointer;}
   void setForceFramePointer(bool forceFP) { ForceFramePointer = forceFP; }
index 7bac407e77e978407d1d91056f62f0c9e7ef2e38..acc8d91adea5b4e897f9189b58e0cee5e333a5d0 100644 (file)
@@ -506,7 +506,7 @@ private:
   /// This POD struct describes one external user in the vectorized tree.
   struct ExternalUser {
     ExternalUser (Value *S, llvm::User *U, int L) :
-      Scalar(S), User(U), Lane(L){};
+      Scalar(S), User(U), Lane(L){}
     // Which scalar in our function.
     Value *Scalar;
     // Which user that uses the scalar.