Skip to content

Commit 13958b7

Browse files
committedJul 22, 2015
Fix -Wextra-semi warnings.
Patch by Eugene Zelenko! Differential Revision: http://reviews.llvm.org/D11400 llvm-svn: 242930
1 parent ceece95 commit 13958b7

17 files changed

+21
-21
lines changed
 

‎llvm/include/llvm/Analysis/LazyCallGraph.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class LazyCallGraph {
190190

191191
Function &getFunction() const {
192192
return F;
193-
};
193+
}
194194

195195
iterator begin() const {
196196
return iterator(*G, Callees.begin(), Callees.end());

‎llvm/include/llvm/Analysis/TargetLibraryInfo.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,13 @@ class TargetLibraryInfo {
201201
}
202202
bool isFunctionVectorizable(StringRef F, unsigned VF) const {
203203
return Impl->isFunctionVectorizable(F, VF);
204-
};
204+
}
205205
bool isFunctionVectorizable(StringRef F) const {
206206
return Impl->isFunctionVectorizable(F);
207-
};
207+
}
208208
StringRef getVectorizedFunction(StringRef F, unsigned VF) const {
209209
return Impl->getVectorizedFunction(F, VF);
210-
};
210+
}
211211

212212
/// \brief Tests if the function is both available and a candidate for
213213
/// optimized code generation.

‎llvm/include/llvm/Bitcode/ReaderWriter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ namespace llvm {
159159
BitcodeDiagnosticInfo(std::error_code EC, DiagnosticSeverity Severity,
160160
const Twine &Msg);
161161
void print(DiagnosticPrinter &DP) const override;
162-
std::error_code getError() const { return EC; };
162+
std::error_code getError() const { return EC; }
163163

164164
static bool classof(const DiagnosticInfo *DI) {
165165
return DI->getKind() == DK_Bitcode;

‎llvm/include/llvm/CodeGen/MachineScheduler.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ class PostGenericScheduler : public GenericSchedulerBase {
915915
MachineBasicBlock::iterator End,
916916
unsigned NumRegionInstrs) override {
917917
/* no configurable policy */
918-
};
918+
}
919919

920920
/// PostRA scheduling does not track pressure.
921921
bool shouldTrackPressure() const override { return false; }

‎llvm/include/llvm/CodeGen/ScheduleDAG.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ namespace llvm {
374374
/// correspond to schedulable entities (e.g. instructions) and do not have a
375375
/// valid ID. Consequently, always check for boundary nodes before accessing
376376
/// an assoicative data structure keyed on node ID.
377-
bool isBoundaryNode() const { return NodeNum == BoundaryID; };
377+
bool isBoundaryNode() const { return NodeNum == BoundaryID; }
378378

379379
/// setNode - Assign the representative SDNode for this SUnit.
380380
/// This may be used during pre-regalloc scheduling.

‎llvm/include/llvm/ExecutionEngine/ExecutionEngine.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ class ExecutionEngine {
481481
}
482482

483483
protected:
484-
ExecutionEngine(const DataLayout DL) : DL(std::move(DL)){};
484+
ExecutionEngine(const DataLayout DL) : DL(std::move(DL)){}
485485
explicit ExecutionEngine(DataLayout DL, std::unique_ptr<Module> M);
486486
explicit ExecutionEngine(std::unique_ptr<Module> M);
487487

‎llvm/include/llvm/ExecutionEngine/RuntimeDyld.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class RuntimeDyld {
8787
/// \brief Memory Management.
8888
class MemoryManager {
8989
public:
90-
virtual ~MemoryManager() {};
90+
virtual ~MemoryManager() {}
9191

9292
/// Allocate a memory block of (at least) the given size suitable for
9393
/// executable code. The SectionID is a unique identifier assigned by the
@@ -149,7 +149,7 @@ class RuntimeDyld {
149149
/// \brief Symbol resolution.
150150
class SymbolResolver {
151151
public:
152-
virtual ~SymbolResolver() {};
152+
virtual ~SymbolResolver() {}
153153

154154
/// This method returns the address of the specified function or variable.
155155
/// It is used to resolve symbols during module linking.

‎llvm/include/llvm/IR/DebugInfoMetadata.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ template <class T> class TypedDINodeRef {
6767

6868
operator Metadata *() const { return const_cast<Metadata *>(MD); }
6969

70-
bool operator==(const TypedDINodeRef<T> &X) const { return MD == X.MD; };
71-
bool operator!=(const TypedDINodeRef<T> &X) const { return MD != X.MD; };
70+
bool operator==(const TypedDINodeRef<T> &X) const { return MD == X.MD; }
71+
bool operator!=(const TypedDINodeRef<T> &X) const { return MD != X.MD; }
7272

7373
/// \brief Create a reference.
7474
///

‎llvm/include/llvm/IR/DiagnosticPrinter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class DiagnosticPrinterRawOStream : public DiagnosticPrinter {
6363
raw_ostream &Stream;
6464

6565
public:
66-
DiagnosticPrinterRawOStream(raw_ostream &Stream) : Stream(Stream) {};
66+
DiagnosticPrinterRawOStream(raw_ostream &Stream) : Stream(Stream) {}
6767

6868
// Simple types.
6969
DiagnosticPrinter &operator<<(char C) override;

‎llvm/include/llvm/MC/MCLinkerOptimizationHint.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class MCLOHContainer {
160160
public:
161161
typedef SmallVectorImpl<MCLOHDirective> LOHDirectives;
162162

163-
MCLOHContainer() : EmitSize(0) {};
163+
MCLOHContainer() : EmitSize(0) {}
164164

165165
/// Const accessor to the directives.
166166
const LOHDirectives &getDirectives() const {

‎llvm/include/llvm/MC/MCTargetAsmParser.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class MCTargetAsmParser : public MCAsmParserExtension {
198198
return nullptr;
199199
}
200200

201-
virtual void onLabelParsed(MCSymbol *Symbol) { };
201+
virtual void onLabelParsed(MCSymbol *Symbol) { }
202202
};
203203

204204
} // End llvm namespace

‎llvm/lib/Analysis/ScalarEvolution.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -6731,7 +6731,7 @@ ScalarEvolution::isLoopBackedgeGuardedByCond(const Loop *L,
67316731
ScalarEvolution &SE;
67326732

67336733
explicit ClearWalkingBEDominatingCondsOnExit(ScalarEvolution &SE)
6734-
: SE(SE){};
6734+
: SE(SE){}
67356735

67366736
~ClearWalkingBEDominatingCondsOnExit() {
67376737
SE.WalkingBEDominatingConds = false;

‎llvm/lib/ExecutionEngine/Orc/OrcMCJITReplacement.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ class OrcMCJITReplacement : public ExecutionEngine {
290290
"Incorrect number of Infos for Objects.");
291291
for (unsigned I = 0; I < Objects.size(); ++I)
292292
M.MemMgr.notifyObjectLoaded(&M, *Objects[I]);
293-
};
293+
}
294294

295295
private:
296296
OrcMCJITReplacement &M;

‎llvm/lib/IR/DiagnosticInfo.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ struct PassRemarksOpt {
4949
"' in -pass-remarks: " + RegexError,
5050
false);
5151
}
52-
};
52+
}
5353
};
5454

5555
static PassRemarksOpt PassRemarksOptLoc;

‎llvm/lib/Target/X86/X86CallFrameOptimization.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class X86CallFrameOptimization : public MachineFunctionPass {
5454
struct CallContext {
5555
CallContext()
5656
: Call(nullptr), SPCopy(nullptr), ExpectedDist(0),
57-
MovVector(4, nullptr), NoStackParams(false), UsePush(false){};
57+
MovVector(4, nullptr), NoStackParams(false), UsePush(false){}
5858

5959
// Actuall call instruction
6060
MachineInstr *Call;

‎llvm/lib/Target/X86/X86MachineFunctionInfo.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class X86MachineFunctionInfo : public MachineFunctionInfo {
100100
public:
101101
X86MachineFunctionInfo() = default;
102102

103-
explicit X86MachineFunctionInfo(MachineFunction &MF) {};
103+
explicit X86MachineFunctionInfo(MachineFunction &MF) {}
104104

105105
bool getForceFramePointer() const { return ForceFramePointer;}
106106
void setForceFramePointer(bool forceFP) { ForceFramePointer = forceFP; }

‎llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ class BoUpSLP {
506506
/// This POD struct describes one external user in the vectorized tree.
507507
struct ExternalUser {
508508
ExternalUser (Value *S, llvm::User *U, int L) :
509-
Scalar(S), User(U), Lane(L){};
509+
Scalar(S), User(U), Lane(L){}
510510
// Which scalar in our function.
511511
Value *Scalar;
512512
// Which user that uses the scalar.

0 commit comments

Comments
 (0)
Please sign in to comment.