summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/CodeEmitterGen.h2
-rw-r--r--llvm/utils/TableGen/CodeGenDAGPatterns.h2
-rw-r--r--llvm/utils/TableGen/RegisterInfoEmitter.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/CodeEmitterGen.h b/llvm/utils/TableGen/CodeEmitterGen.h
index ed6777d1f31..2dc34baaecd 100644
--- a/llvm/utils/TableGen/CodeEmitterGen.h
+++ b/llvm/utils/TableGen/CodeEmitterGen.h
@@ -23,7 +23,7 @@ namespace llvm {
class RecordVal;
class BitsInit;
-class Init;
+struct Init;
class CodeEmitterGen : public TableGenBackend {
RecordKeeper &Records;
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.h b/llvm/utils/TableGen/CodeGenDAGPatterns.h
index 398764b30a0..c51232a4c3f 100644
--- a/llvm/utils/TableGen/CodeGenDAGPatterns.h
+++ b/llvm/utils/TableGen/CodeGenDAGPatterns.h
@@ -445,7 +445,7 @@ struct PatternToMatch {
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.
diff --git a/llvm/utils/TableGen/RegisterInfoEmitter.cpp b/llvm/utils/TableGen/RegisterInfoEmitter.cpp
index bf0721ed9af..fcf4123cefb 100644
--- a/llvm/utils/TableGen/RegisterInfoEmitter.cpp
+++ b/llvm/utils/TableGen/RegisterInfoEmitter.cpp
@@ -162,7 +162,7 @@ private:
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.
OpenPOWER on IntegriCloud