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

Patch contributed by Jeff Cohen.

llvm-svn: 17889
This commit is contained in:
Reid Spencer 2004-11-16 06:58:55 +00:00
parent 2732be9e52
commit f5e3cfe6d6
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; }