mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
MC CFG: Add entrypoint address to MCModule.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188877 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f9e2348e94
commit
07e8f8f643
@ -60,14 +60,17 @@ class MCModule {
|
|||||||
FunctionListTy Functions;
|
FunctionListTy Functions;
|
||||||
/// @}
|
/// @}
|
||||||
|
|
||||||
|
/// The address of the entrypoint function.
|
||||||
|
uint64_t Entrypoint;
|
||||||
|
|
||||||
MCModule (const MCModule &) LLVM_DELETED_FUNCTION;
|
MCModule (const MCModule &) LLVM_DELETED_FUNCTION;
|
||||||
MCModule& operator=(const MCModule &) LLVM_DELETED_FUNCTION;
|
MCModule& operator=(const MCModule &) LLVM_DELETED_FUNCTION;
|
||||||
|
|
||||||
// MCObjectDisassembler creates MCModules.
|
// MCObjectDisassembler creates MCModules.
|
||||||
friend class MCObjectDisassembler;
|
friend class MCObjectDisassembler;
|
||||||
MCModule() : Atoms() { }
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
MCModule() : Entrypoint(0) { }
|
||||||
~MCModule();
|
~MCModule();
|
||||||
|
|
||||||
/// \name Create a new MCAtom covering the specified offset range.
|
/// \name Create a new MCAtom covering the specified offset range.
|
||||||
@ -101,6 +104,9 @@ public:
|
|||||||
const_func_iterator func_end() const { return Functions.end(); }
|
const_func_iterator func_end() const { return Functions.end(); }
|
||||||
func_iterator func_end() { return Functions.end(); }
|
func_iterator func_end() { return Functions.end(); }
|
||||||
/// @}
|
/// @}
|
||||||
|
|
||||||
|
/// \brief Get the address of the entrypoint function, or 0 if there is none.
|
||||||
|
uint64_t getEntrypoint() const { return Entrypoint; }
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user