Standardize on 'class' instead of 'struct'. Gets rid of warnings in VC++

Patch contributed by Jeff Cohen.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17889 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-11-16 06:58:55 +00:00
parent dac56e6518
commit e26057a376
2 changed files with 3 additions and 2 deletions

View File

@ -70,12 +70,13 @@ class AllocationInst;
template<typename SubClass, typename RetTy=void>
struct InstVisitor {
class InstVisitor {
//===--------------------------------------------------------------------===//
// Interface code - This is the public interface of the InstVisitor that you
// use to visit instructions...
//
public:
// Generic visit method - Allow visitation to all instructions in a range
template<class Iterator>
void visit(Iterator Start, Iterator End) {

View File

@ -29,7 +29,7 @@ namespace {
#include "llvm/Instruction.def"
class InstCount : public FunctionPass, public InstVisitor<InstCount> {
friend struct InstVisitor<InstCount>;
friend class InstVisitor<InstCount>;
void visitFunction (Function &F) { ++TotalFuncs; }
void visitBasicBlock(BasicBlock &BB) { ++TotalBlocks; }