llvm.org GIT mirror llvm / e26057a
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 Reid Spencer 15 years ago
2 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6969
7070
7171 template
72 struct InstVisitor {
72 class InstVisitor {
7373 //===--------------------------------------------------------------------===//
7474 // Interface code - This is the public interface of the InstVisitor that you
7575 // use to visit instructions...
7676 //
7777
78 public:
7879 // Generic visit method - Allow visitation to all instructions in a range
7980 template
8081 void visit(Iterator Start, Iterator End) {
2828 #include "llvm/Instruction.def"
2929
3030 class InstCount : public FunctionPass, public InstVisitor {
31 friend struct InstVisitor;
31 friend class InstVisitor;
3232
3333 void visitFunction (Function &F) { ++TotalFuncs; }
3434 void visitBasicBlock(BasicBlock &BB) { ++TotalBlocks; }