1 //===-- MachineCodeInfo.h - Class used to report JIT info -------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines MachineCodeInfo, a class used by the JIT ExecutionEngine
11 // to report information about the generated machine code.
13 // See JIT::runJITOnFunction for usage.
15 //===----------------------------------------------------------------------===//
17 #ifndef EE_MACHINE_CODE_INFO_H
18 #define EE_MACHINE_CODE_INFO_H
20 #include "llvm/System/DataTypes.h"
24 class MachineCodeInfo {
26 size_t Size; // Number of bytes in memory used
27 void *Address; // The address of the function in memory
30 MachineCodeInfo() : Size(0), Address(0) {}
32 void setSize(size_t s) {
36 void setAddress(void *a) {
44 void *address() const {