From: Reid Spencer Date: Tue, 16 Nov 2004 06:58:55 +0000 (+0000) Subject: Standardize on 'class' instead of 'struct'. Gets rid of warnings in VC++ X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e26057a376f04e20da6c7217d19eaa184767cb1d;p=oota-llvm.git 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 --- diff --git a/include/llvm/Support/InstVisitor.h b/include/llvm/Support/InstVisitor.h index a9b3b715065..6eef0f9a106 100644 --- a/include/llvm/Support/InstVisitor.h +++ b/include/llvm/Support/InstVisitor.h @@ -70,12 +70,13 @@ class AllocationInst; template -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 void visit(Iterator Start, Iterator End) { diff --git a/lib/Analysis/InstCount.cpp b/lib/Analysis/InstCount.cpp index 96c255ba311..12d16b081e7 100644 --- a/lib/Analysis/InstCount.cpp +++ b/lib/Analysis/InstCount.cpp @@ -29,7 +29,7 @@ namespace { #include "llvm/Instruction.def" class InstCount : public FunctionPass, public InstVisitor { - friend struct InstVisitor; + friend class InstVisitor; void visitFunction (Function &F) { ++TotalFuncs; } void visitBasicBlock(BasicBlock &BB) { ++TotalBlocks; }