mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 02:32:08 +00:00
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:
parent
dac56e6518
commit
e26057a376
@ -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) {
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user