mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-23 15:29:51 +00:00
0c8ae782cb
Fix some problems with the hidden copy constructors for ImmutableMap/ImmutableSet found by Clang++. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86186 91177308-0d34-0410-b5e6-96231b3b80d8
54 lines
1.1 KiB
C++
54 lines
1.1 KiB
C++
//===-- MachineCodeInfo.h - Class used to report JIT info -------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file defines MachineCodeInfo, a class used by the JIT ExecutionEngine
|
|
// to report information about the generated machine code.
|
|
//
|
|
// See JIT::runJITOnFunction for usage.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef EE_MACHINE_CODE_INFO_H
|
|
#define EE_MACHINE_CODE_INFO_H
|
|
|
|
#include "llvm/System/DataTypes.h"
|
|
|
|
namespace llvm {
|
|
|
|
class MachineCodeInfo {
|
|
private:
|
|
size_t Size; // Number of bytes in memory used
|
|
void *Address; // The address of the function in memory
|
|
|
|
public:
|
|
MachineCodeInfo() : Size(0), Address(0) {}
|
|
|
|
void setSize(size_t s) {
|
|
Size = s;
|
|
}
|
|
|
|
void setAddress(void *a) {
|
|
Address = a;
|
|
}
|
|
|
|
size_t size() const {
|
|
return Size;
|
|
}
|
|
|
|
void *address() const {
|
|
return Address;
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|
|
|