[llvm-commits] CVS: llvm/lib/Analysis/InstCount.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Oct 27 09:10:26 PDT 2004
Changes in directory llvm/lib/Analysis:
InstCount.cpp updated: 1.8 -> 1.9
---
Log message:
Convert 'struct' to 'class' in various places to adhere to the coding standards
and work better with VC++. Patch contributed by Morten Ofstad!
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Analysis/InstCount.cpp
diff -u llvm/lib/Analysis/InstCount.cpp:1.8 llvm/lib/Analysis/InstCount.cpp:1.9
--- llvm/lib/Analysis/InstCount.cpp:1.8 Wed Sep 1 17:55:35 2004
+++ llvm/lib/Analysis/InstCount.cpp Wed Oct 27 11:10:15 2004
@@ -29,7 +29,7 @@
#include "llvm/Instruction.def"
class InstCount : public FunctionPass, public InstVisitor<InstCount> {
- friend class InstVisitor<InstCount>;
+ friend struct InstVisitor<InstCount>;
void visitFunction (Function &F) { ++TotalFuncs; }
void visitBasicBlock(BasicBlock &BB) { ++TotalBlocks; }
More information about the llvm-commits
mailing list