Index: lib/Target/ARM/ARMELFWriterInfo.cpp |
=================================================================== |
--- a/lib/Target/ARM/ARMELFWriterInfo.cpp |
+++ b/lib/Target/ARM/ARMELFWriterInfo.cpp |
@@ -16,12 +16,27 @@ |
#include "llvm/Function.h" |
#include "llvm/CodeGen/BinaryObject.h" |
#include "llvm/Support/ErrorHandling.h" |
+#include "llvm/CodeGen/MachineRelocation.h" |
#include "llvm/Target/TargetData.h" |
#include "llvm/Target/TargetMachine.h" |
using namespace llvm; |
//===----------------------------------------------------------------------===// |
+// The ARMELFRelocHelper class |
+//===----------------------------------------------------------------------===// |
+ |
+class ARMELFRelocHelper : public TargetELFRelocHelper { |
+public: |
+ virtual ~ARMELFRelocHelper() {}; |
+ virtual void RelocateField(BinaryObject &BO, uint32_t Offset, |
+ int64_t Value, unsigned Size, |
+ const MachineRelocation &MR) { |
+ assert(0 && "ARM RelocateField() unimplemented"); |
+ }; |
+}; |
+ |
+//===----------------------------------------------------------------------===// |
// Implementation of the ARMELFWriterInfo class |
//===----------------------------------------------------------------------===// |
@@ -68,3 +83,7 @@ |
"ARMELFWriterInfo::getAbsoluteLabelMachineRelTy() not implemented"); |
return 0; |
} |
+ |
+TargetELFRelocHelper *ARMELFWriterInfo::getRelocHelper() const { |
+ return new ARMELFRelocHelper(); |
+} |