mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-05 13:09:10 +00:00
MC CFG: Remap enough for the inserted instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188873 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e0511ded94
commit
3ec498faad
@ -72,8 +72,8 @@ MCDataAtom *MCDataAtom::split(uint64_t SplitPt) {
|
|||||||
// MCTextAtom
|
// MCTextAtom
|
||||||
|
|
||||||
void MCTextAtom::addInst(const MCInst &I, uint64_t Size) {
|
void MCTextAtom::addInst(const MCInst &I, uint64_t Size) {
|
||||||
if (NextInstAddress > End)
|
if (NextInstAddress + Size - 1 > End)
|
||||||
remap(Begin, NextInstAddress);
|
remap(Begin, NextInstAddress + Size - 1);
|
||||||
Insts.push_back(MCDecodedInst(I, NextInstAddress, Size));
|
Insts.push_back(MCDecodedInst(I, NextInstAddress, Size));
|
||||||
NextInstAddress += Size;
|
NextInstAddress += Size;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user