summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-12 22:10:57 +0000
committerDan Gohman <gohman@apple.com>2009-08-12 22:10:57 +0000
commit1432ef864e363e91890bb1f9678f499f866dda0f (patch)
treed2f1697774254d49628dddcdc47ac334a08c731d /llvm/utils
parentcb2752bb5d0d75c7e1799f1cde17546986ba4fbb (diff)
downloadbcm5719-llvm-1432ef864e363e91890bb1f9678f499f866dda0f.tar.gz
bcm5719-llvm-1432ef864e363e91890bb1f9678f499f866dda0f.zip
This void is implicit in C++.
llvm-svn: 78848
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/Record.h8
-rw-r--r--llvm/utils/TableGen/TGParser.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/llvm/utils/TableGen/Record.h b/llvm/utils/TableGen/Record.h
index 11db910328a..40c8239b9a3 100644
--- a/llvm/utils/TableGen/Record.h
+++ b/llvm/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/llvm/utils/TableGen/TGParser.cpp b/llvm/utils/TableGen/TGParser.cpp
index ba480e6e926..71222650054 100644
--- a/llvm/utils/TableGen/TGParser.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud