Get this file compiling with VC++, patch contributed by Morten Ofstad. Thanks Morten!
[oota-llvm.git] / lib / Analysis / InstCount.cpp
index 4d49478a9e62b291a1fcd8f6afad014d39064eb4..12d16b081e7b3db6b4b383e92f1e14405c3b054e 100644 (file)
@@ -14,7 +14,9 @@
 #include "llvm/Pass.h"
 #include "llvm/Function.h"
 #include "llvm/Support/InstVisitor.h"
-#include "Support/Statistic.h"
+#include "llvm/ADT/Statistic.h"
+
+namespace llvm {
 
 namespace {
   Statistic<> TotalInsts ("instcount", "Number of instructions (of all types)");
@@ -62,3 +64,5 @@ bool InstCount::runOnFunction(Function &F) {
   visit(F);
   return false;
 }
+
+} // End llvm namespace