LLVM API Documentation
#include <MCAtom.h>
Public Member Functions | |
| bool | isTextAtom () const |
| bool | isDataAtom () const |
| void | addInst (const MCInst &I, uint64_t Address, unsigned Size) |
| void | addData (const MCData &D) |
| MCAtom * | split (uint64_t SplitPt) |
| void | truncate (uint64_t TruncPt) |
Friends | |
| class | MCModule |
MCAtom - Represents a contiguous range of either instructions (a TextAtom) or data (a DataAtom). Address ranges are expressed as _closed_ intervals.
| void MCAtom::addData | ( | const MCData & | D | ) |
Definition at line 27 of file MCAtom.cpp.
References llvm::object::macho::Data.
Definition at line 16 of file MCAtom.cpp.
| bool llvm::MCAtom::isDataAtom | ( | ) | const [inline] |
Definition at line 50 of file MCAtom.h.
Referenced by split(), and truncate().
| bool llvm::MCAtom::isTextAtom | ( | ) | const [inline] |
Definition at line 49 of file MCAtom.h.
Referenced by split(), and truncate().
| MCAtom * MCAtom::split | ( | uint64_t | SplitPt | ) |
split - Splits the atom in two at a given address, which must align with and instruction boundary if this is a TextAtom. Returns the newly created atom representing the high part of the split.
Definition at line 34 of file MCAtom.cpp.
References llvm::MCModule::createAtom(), llvm::object::macho::Data, llvm::ARM_PROC::I, isDataAtom(), isTextAtom(), and llvm_unreachable.
| void MCAtom::truncate | ( | uint64_t | TruncPt | ) |
truncate - Truncates an atom so that TruncPt is the last byte address contained in the atom.
Definition at line 76 of file MCAtom.cpp.
References llvm::object::macho::Data, llvm::ARM_PROC::I, isDataAtom(), isTextAtom(), and llvm_unreachable.