diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-12 22:10:57 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-12 22:10:57 +0000 |
commit | a9ad04191cb56c42944b17980b8b2bb2afe11ab2 (patch) | |
tree | 217ac479944faf363c1d09f76ff1b9eb70fbbd57 /utils/TableGen | |
parent | 2ffb0ce7dce2d5c243b90493807308af6fab0528 (diff) | |
download | external_llvm-a9ad04191cb56c42944b17980b8b2bb2afe11ab2.zip external_llvm-a9ad04191cb56c42944b17980b8b2bb2afe11ab2.tar.gz external_llvm-a9ad04191cb56c42944b17980b8b2bb2afe11ab2.tar.bz2 |
This void is implicit in C++.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/Record.h | 8 | ||||
-rw-r--r-- | utils/TableGen/TGParser.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index 11db910..40c8239 100644 --- a/utils/TableGen/Record.h +++ b/utils/TableGen/Record.h @@ -782,7 +782,7 @@ public: // Clone - Clone this operator, replacing arguments with the new list virtual OpInit *clone(std::vector<Init *> &Operands) = 0; - virtual int getNumOperands(void) const = 0; + virtual int getNumOperands() const = 0; virtual Init *getOperand(int i) = 0; // Fold - If possible, fold this to a simpler init. Return this if not @@ -820,7 +820,7 @@ public: return new UnOpInit(getOpcode(), *Operands.begin(), getType()); } - int getNumOperands(void) const { return 1; } + int getNumOperands() const { return 1; } Init *getOperand(int i) { assert(i == 0 && "Invalid operand id for unary operator"); return getOperand(); @@ -864,7 +864,7 @@ public: return new BinOpInit(getOpcode(), Operands[0], Operands[1], getType()); } - int getNumOperands(void) const { return 2; } + int getNumOperands() const { return 2; } Init *getOperand(int i) { assert((i == 0 || i == 1) && "Invalid operand id for binary operator"); if (i == 0) { @@ -909,7 +909,7 @@ public: getType()); } - int getNumOperands(void) const { return 3; } + int getNumOperands() const { return 3; } Init *getOperand(int i) { assert((i == 0 || i == 1 || i == 2) && "Invalid operand id for ternary operator"); diff --git a/utils/TableGen/TGParser.cpp b/utils/TableGen/TGParser.cpp index ba480e6..7122265 100644 --- a/utils/TableGen/TGParser.cpp +++ b/utils/TableGen/TGParser.cpp @@ -974,7 +974,7 @@ Init *TGParser::ParseOperation(Record *CurRec) { /// /// OperatorType ::= '<' Type '>' /// -RecTy *TGParser::ParseOperatorType(void) { +RecTy *TGParser::ParseOperatorType() { RecTy *Type = 0; if (Lex.getCode() != tgtok::less) { |