diff options
3 files changed, 6 insertions, 3 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationFunctions.h b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationFunctions.h index 8e603bbe562..8df0c8aee2e 100644 --- a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationFunctions.h +++ b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationFunctions.h @@ -23,6 +23,9 @@ typedef struct { #include "HexagonV4Encodings.h" +#define FINDV4BITMASK(INSN) findBitMask(*((uint32_t *)INSN), \ + insn_encodings_v4, \ + sizeof(insn_encodings_v4)/sizeof(Instruction)) /// \brief finds the scatter Bits that need to be used to apply relocations uint32_t findBitMask(uint32_t insn, Instruction *encodings, int32_t numInsns) { diff --git a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp index 00fa1214a40..a064cfbe239 100644 --- a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp +++ b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp @@ -10,6 +10,7 @@ #include "HexagonTargetHandler.h" #include "HexagonTargetInfo.h" #include "HexagonRelocationHandler.h" +#include "HexagonRelocationFunctions.h" using namespace lld; diff --git a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.h b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.h index e6d2f631aa7..d1757cfd1d0 100644 --- a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.h +++ b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.h @@ -6,11 +6,10 @@ // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// -#ifndef LLD_READER_WRITER_ELF_HEXAGON_RELOCATION_FUNCTIONS_H -#define LLD_READER_WRITER_ELF_HEXAGON_RELOCATION_FUNCTIONS_H +#ifndef LLD_READER_WRITER_ELF_HEXAGON_RELOCATION_HANDLER_H +#define LLD_READER_WRITER_ELF_HEXAGON_RELOCATION_HANDLER_H #include "HexagonTargetHandler.h" -#include "HexagonRelocationFunctions.h" #include "lld/ReaderWriter/RelocationHelperFunctions.h" namespace lld { |

