Read in the bytecode and profile information, but don't do anything with
it yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9556 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/llvm-prof/ProfileInfo.h b/tools/llvm-prof/ProfileInfo.h
new file mode 100644
index 0000000..8f823aa
--- /dev/null
+++ b/tools/llvm-prof/ProfileInfo.h
@@ -0,0 +1,31 @@
+//===- ProfileInfo.h - Represents profile information -----------*- C++ -*-===//
+//
+// 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.
+//
+//===----------------------------------------------------------------------===//
+//
+// The ProfileInfo class is used to represent profiling information read in from
+// the dump file.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef PROFILEINFO_H
+#define PROFILEINFO_H
+
+#include <vector>
+#include <string>
+
+class ProfileInfo {
+ std::vector<std::string> CommandLines;
+ std::vector<unsigned> FunctionCounts;
+ std::vector<unsigned> BlockCounts;
+public:
+ // ProfileInfo ctor - Read the specified profiling data file, exiting the
+ // program if the file is invalid or broken.
+ ProfileInfo(const char *ToolName, const std::string &Filename);
+};
+
+#endif