1193323Sed//===-- MachineCodeInfo.h - Class used to report JIT info -------*- C++ -*-===//
2193323Sed//
3193323Sed//                     The LLVM Compiler Infrastructure
4193323Sed//
5193323Sed// This file is distributed under the University of Illinois Open Source
6193323Sed// License. See LICENSE.TXT for details.
7193323Sed//
8193323Sed//===----------------------------------------------------------------------===//
9193323Sed//
10193323Sed// This file defines MachineCodeInfo, a class used by the JIT ExecutionEngine
11193323Sed// to report information about the generated machine code.
12193323Sed//
13193323Sed// See JIT::runJITOnFunction for usage.
14193323Sed//
15193323Sed//===----------------------------------------------------------------------===//
16193323Sed
17252723Sdim#ifndef LLVM_CODEGEN_MACHINECODEINFO_H
18252723Sdim#define LLVM_CODEGEN_MACHINECODEINFO_H
19193323Sed
20218893Sdim#include "llvm/Support/DataTypes.h"
21199481Srdivacky
22193323Sednamespace llvm {
23193323Sed
24193323Sedclass MachineCodeInfo {
25193323Sedprivate:
26193323Sed  size_t Size;   // Number of bytes in memory used
27193323Sed  void *Address; // The address of the function in memory
28193323Sed
29193323Sedpublic:
30193323Sed  MachineCodeInfo() : Size(0), Address(0) {}
31193323Sed
32193323Sed  void setSize(size_t s) {
33193323Sed    Size = s;
34193323Sed  }
35193323Sed
36193323Sed  void setAddress(void *a) {
37193323Sed    Address = a;
38193323Sed  }
39193323Sed
40193323Sed  size_t size() const {
41193323Sed    return Size;
42193323Sed  }
43193323Sed
44193323Sed  void *address() const {
45193323Sed    return Address;
46193323Sed  }
47193323Sed
48193323Sed};
49193323Sed
50193323Sed}
51193323Sed
52193323Sed#endif
53193323Sed
54