mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Re-enable ARM/Thumb disassembler and add a workaround for a memcpy() call in
ARMDecoderEmitter.cpp, with FIXME comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100690 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -596,7 +596,11 @@ void Filter::recurse() {
|
||||
|
||||
bit_value_t BitValueArray[BIT_WIDTH];
|
||||
// Starts by inheriting our parent filter chooser's filter bit values.
|
||||
memcpy(BitValueArray, Owner->FilterBitValues, sizeof(BitValueArray));
|
||||
bit_value_t *BitVals = Owner->FilterBitValues;
|
||||
for (unsigned i = 0; i < BIT_WIDTH; ++i)
|
||||
BitValueArray[i] = BitVals[i];
|
||||
// FIXME: memcpy() is optmized out with self-hosting llvm-gcc (-O1 and -O2).
|
||||
//memcpy(BitValueArray, Owner->FilterBitValues, sizeof(BitValueArray));
|
||||
|
||||
unsigned bitIndex;
|
||||
|
||||
@@ -623,7 +627,7 @@ void Filter::recurse() {
|
||||
assert(FilterChooserMap.size() == 1);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Otherwise, create sub choosers.
|
||||
for (mapIterator = FilteredInstructions.begin();
|
||||
mapIterator != FilteredInstructions.end();
|
||||
|
Reference in New Issue
Block a user