projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Debug info: On ARM ensure that the data sections come before the"
[oota-llvm.git]
/
lib
/
MC
/
MCObjectDisassembler.cpp
diff --git
a/lib/MC/MCObjectDisassembler.cpp
b/lib/MC/MCObjectDisassembler.cpp
index fa4663740d3488bd3567fdfc15cca7d304a4948e..16a110f09bf8559154a1d9974614d502c8c1a6af 100644
(file)
--- a/
lib/MC/MCObjectDisassembler.cpp
+++ b/
lib/MC/MCObjectDisassembler.cpp
@@
-135,11
+135,13
@@
void MCObjectDisassembler::buildSectionAtoms(MCModule *Module) {
Text->addInst(Inst, InstSize);
InvalidData = 0;
} else {
Text->addInst(Inst, InstSize);
InvalidData = 0;
} else {
+ assert(InstSize && "getInstruction() consumed no bytes");
if (!InvalidData) {
Text = 0;
if (!InvalidData) {
Text = 0;
- InvalidData = Module->createDataAtom(CurAddr,
EndAddr
);
+ InvalidData = Module->createDataAtom(CurAddr,
CurAddr+InstSize - 1
);
}
}
- InvalidData->addData(Contents[Index]);
+ for (uint64_t I = 0; I < InstSize; ++I)
+ InvalidData->addData(Contents[Index+I]);
}
}
} else {
}
}
} else {