mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 22:26:14 +00:00
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:
parent
9db135a5f1
commit
380de5479c
@ -190,7 +190,7 @@ public:
|
||||
|
||||
Function &getFunction() const {
|
||||
return F;
|
||||
};
|
||||
}
|
||||
|
||||
iterator begin() const {
|
||||
return iterator(*G, Callees.begin(), Callees.end());
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -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; }
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
///
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -198,7 +198,7 @@ public:
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
virtual void onLabelParsed(MCSymbol *Symbol) { };
|
||||
virtual void onLabelParsed(MCSymbol *Symbol) { }
|
||||
};
|
||||
|
||||
} // End llvm namespace
|
||||
|
@ -6731,7 +6731,7 @@ ScalarEvolution::isLoopBackedgeGuardedByCond(const Loop *L,
|
||||
ScalarEvolution &SE;
|
||||
|
||||
explicit ClearWalkingBEDominatingCondsOnExit(ScalarEvolution &SE)
|
||||
: SE(SE){};
|
||||
: SE(SE){}
|
||||
|
||||
~ClearWalkingBEDominatingCondsOnExit() {
|
||||
SE.WalkingBEDominatingConds = false;
|
||||
|
@ -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;
|
||||
|
@ -49,7 +49,7 @@ struct PassRemarksOpt {
|
||||
"' in -pass-remarks: " + RegexError,
|
||||
false);
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
static PassRemarksOpt PassRemarksOptLoc;
|
||||
|
@ -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;
|
||||
|
@ -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; }
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user