File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2147,16 +2147,16 @@ constexpr uint32_t HEXAGON_END_OF_DUPLEX = 0 << 14;
2147
2147
// relocation.
2148
2148
static int getHexagonPacketOffset (const InputSection &isec,
2149
2149
const Relocation &rel) {
2150
- const ArrayRef<uint8_t > SectContents = isec.content ();
2150
+ const ArrayRef<uint8_t > data = isec.content ();
2151
2151
2152
2152
// Search back as many as 3 instructions.
2153
2153
for (unsigned i = 0 ;; i++) {
2154
2154
if (i == 3 || rel.offset < (i + 1 ) * 4 )
2155
2155
return i * 4 ;
2156
2156
uint32_t instWord = 0 ;
2157
- const ArrayRef<uint8_t > InstWordContents =
2158
- SectContents .drop_front (rel.offset - (i + 1 ) * 4 );
2159
- :: memcpy (&instWord, InstWordContents .data(), sizeof(instWord));
2157
+ const ArrayRef<uint8_t > instWordContents =
2158
+ data .drop_front (rel.offset - (i + 1 ) * 4 );
2159
+ memcpy (&instWord, instWordContents .data (), sizeof (instWord));
2160
2160
if (((instWord & HEXAGON_MASK_END_PACKET) == HEXAGON_END_OF_PACKET) ||
2161
2161
((instWord & HEXAGON_MASK_END_PACKET) == HEXAGON_END_OF_DUPLEX))
2162
2162
return i * 4 ;
You can’t perform that action at this time.
0 commit comments