Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Unified Diff: lib/Target/ARM/ARMELFWriterInfo.cpp

Issue 4295001: arm-mc-elf-s07-tew (Closed)
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/Target/ARM/ARMELFWriterInfo.h ('k') | lib/Target/TargetELFWriterInfo.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
+}
« no previous file with comments | « lib/Target/ARM/ARMELFWriterInfo.h ('k') | lib/Target/TargetELFWriterInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698