Index: lib/Target/TargetELFWriterInfo.cpp |
=================================================================== |
--- a/lib/Target/TargetELFWriterInfo.cpp |
+++ b/lib/Target/TargetELFWriterInfo.cpp |
@@ -11,15 +11,35 @@ |
// |
//===----------------------------------------------------------------------===// |
+#include <cassert> |
#include "llvm/Function.h" |
#include "llvm/Target/TargetELFWriterInfo.h" |
#include "llvm/Target/TargetData.h" |
#include "llvm/Target/TargetMachine.h" |
using namespace llvm; |
+//===----------------------------------------------------------------------===// |
+// TargetELFWriterInfo implementation |
+//===----------------------------------------------------------------------===// |
+ |
TargetELFWriterInfo::TargetELFWriterInfo(bool is64Bit_, bool isLittleEndian_) : |
is64Bit(is64Bit_), isLittleEndian(isLittleEndian_) { |
} |
TargetELFWriterInfo::~TargetELFWriterInfo() {} |
+TargetELFRelocHelper *TargetELFWriterInfo::getRelocHelper() const { |
+ return new TargetELFRelocHelper(); |
+} |
+ |
+//===----------------------------------------------------------------------===// |
+// TargetELFRelocHelper implementation |
+//===----------------------------------------------------------------------===// |
+ |
+TargetELFRelocHelper::~TargetELFRelocHelper() {} |
+ |
+void TargetELFRelocHelper::RelocateField(BinaryObject &BO, uint32_t Offset, |
+ int64_t Value, unsigned Size, |
+ const MachineRelocation &MR) { |
+ assert(0 && "unimplemented RelocateField()"); |
+} |