Rewrite to use the reachability cloner interface. Also, make this much more
[oota-llvm.git] / lib / Analysis / InstCount.cpp
index 85f580c25d639682a92b824007dd7a47f8536a91..9177e4480004704a30f9f85376c0271128f87544 100644 (file)
@@ -1,4 +1,11 @@
 //===-- InstCount.cpp - Collects the count of all instructions ------------===//
+// 
+//                     The LLVM Compiler Infrastructure
+//
+// This file was developed by the LLVM research group and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// 
+//===----------------------------------------------------------------------===//
 //
 // This pass collects the count of all instructions and reports them 
 //
@@ -9,6 +16,8 @@
 #include "llvm/Support/InstVisitor.h"
 #include "Support/Statistic.h"
 
+namespace llvm {
+
 namespace {
   Statistic<> TotalInsts ("instcount", "Number of instructions (of all types)");
   Statistic<> TotalBlocks("instcount", "Number of basic blocks");
@@ -55,3 +64,5 @@ bool InstCount::runOnFunction(Function &F) {
   visit(F);
   return false;
 }
+
+} // End llvm namespace