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