fixing typo in header file
authorShankar Easwaran <shankare@codeaurora.org>
Wed, 27 Feb 2013 04:02:30 +0000 (04:02 +0000)
committerShankar Easwaran <shankare@codeaurora.org>
Wed, 27 Feb 2013 04:02:30 +0000 (04:02 +0000)
llvm-svn: 176162

lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationFunctions.h
lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp
lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.h

index 8e603bbe562a9ea41a55f0e45bfcefc37945a6b9..8df0c8aee2eb8f23e88427d1857de0538fca9fb9 100644 (file)
@@ -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) {
index 00fa1214a407f5474d6975c28360fd9bf4e18fab..a064cfbe239d39c1c2a9895a78f005b2cc0061b4 100644 (file)
@@ -10,6 +10,7 @@
 #include "HexagonTargetHandler.h"
 #include "HexagonTargetInfo.h"
 #include "HexagonRelocationHandler.h"
+#include "HexagonRelocationFunctions.h"
 
 
 using namespace lld;
index e6d2f631aa73a730c7bfdeba7e57d8e33572e024..d1757cfd1d078a9fa8a9e36e51b3adb0e51a0caf 100644 (file)
@@ -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 {