Fix -Wextra-semi warnings.

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
This commit is contained in:
Hans Wennborg 2015-07-22 20:46:11 +00:00
parent 9db135a5f1
commit 380de5479c
17 changed files with 21 additions and 21 deletions

View File

@ -190,7 +190,7 @@ public:
Function &getFunction() const {
return F;
};
}
iterator begin() const {
return iterator(*G, Callees.begin(), Callees.end());

View 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.

View 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;

View 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; }

View 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.

View 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);

View 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.

View 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.
///

View 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;

View 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 {

View File

@ -198,7 +198,7 @@ public:
return nullptr;
}
virtual void onLabelParsed(MCSymbol *Symbol) { };
virtual void onLabelParsed(MCSymbol *Symbol) { }
};
} // End llvm namespace

View File

@ -6731,7 +6731,7 @@ ScalarEvolution::isLoopBackedgeGuardedByCond(const Loop *L,
ScalarEvolution &SE;
explicit ClearWalkingBEDominatingCondsOnExit(ScalarEvolution &SE)
: SE(SE){};
: SE(SE){}
~ClearWalkingBEDominatingCondsOnExit() {
SE.WalkingBEDominatingConds = false;

View 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;

View File

@ -49,7 +49,7 @@ struct PassRemarksOpt {
"' in -pass-remarks: " + RegexError,
false);
}
};
}
};
static PassRemarksOpt PassRemarksOptLoc;

View 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;

View 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; }

View 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.