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

Side by Side Diff: lib/Target/ARM/ARMELFWriterInfo.cpp

Issue 4294001: arm-mc-elf-s07 (Closed)
Patch Set: Created 10 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « lib/Target/ARM/ARMELFWriterInfo.h ('k') | lib/Target/MBlaze/MBlazeELFWriterInfo.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===-- ARMELFWriterInfo.cpp - ELF Writer Info for the ARM backend --------===// 1 //===-- ARMELFWriterInfo.cpp - ELF Writer Info for the ARM backend --------===//
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // The LLVM Compiler Infrastructure
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file implements ELF writer information for the ARM backend. 10 // This file implements ELF writer information for the ARM backend.
11 // 11 //
12 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===//
13 13
14 #include "ARMELFWriterInfo.h" 14 #include "ARMELFWriterInfo.h"
15 #include "ARMRelocations.h" 15 #include "ARMRelocations.h"
16 #include "llvm/Function.h" 16 #include "llvm/Function.h"
17 #include "llvm/CodeGen/BinaryObject.h"
17 #include "llvm/Support/ErrorHandling.h" 18 #include "llvm/Support/ErrorHandling.h"
18 #include "llvm/Target/TargetData.h" 19 #include "llvm/Target/TargetData.h"
19 #include "llvm/Target/TargetMachine.h" 20 #include "llvm/Target/TargetMachine.h"
20 21
21 using namespace llvm; 22 using namespace llvm;
22 23
23 //===----------------------------------------------------------------------===// 24 //===----------------------------------------------------------------------===//
24 // Implementation of the ARMELFWriterInfo class 25 // Implementation of the ARMELFWriterInfo class
25 //===----------------------------------------------------------------------===// 26 //===----------------------------------------------------------------------===//
26 27
27 ARMELFWriterInfo::ARMELFWriterInfo(TargetMachine &TM) 28 ARMELFWriterInfo::ARMELFWriterInfo(TargetMachine &TM)
28 : TargetELFWriterInfo(TM.getTargetData()->getPointerSizeInBits() == 64, 29 : TargetELFWriterInfo(TM.getTargetData()->getPointerSizeInBits() == 64,
29 TM.getTargetData()->isLittleEndian()) { 30 TM.getTargetData()->isLittleEndian()) {
30 // silently OK construction 31 // silently OK construction
31 } 32 }
32 33
33 ARMELFWriterInfo::~ARMELFWriterInfo() {} 34 ARMELFWriterInfo::~ARMELFWriterInfo() {}
34 35
35 unsigned ARMELFWriterInfo::getRelocationType(unsigned MachineRelTy) const { 36 unsigned ARMELFWriterInfo::getRelocationType(const BinaryObject &S,
37 const MachineRelocation &MR) const {
36 assert(0 && "ARMELFWriterInfo::getRelocationType() not implemented"); 38 assert(0 && "ARMELFWriterInfo::getRelocationType() not implemented");
37 return 0; 39 return 0;
38 } 40 }
39 41
40 long int ARMELFWriterInfo::getDefaultAddendForRelTy(unsigned RelTy, 42 long int ARMELFWriterInfo::getDefaultAddendForRelTy(unsigned RelTy,
41 long int Modifier) const { 43 long int Modifier) const {
42 assert(0 && "ARMELFWriterInfo::getDefaultAddendForRelTy() not implemented"); 44 assert(0 && "ARMELFWriterInfo::getDefaultAddendForRelTy() not implemented");
43 return 0; 45 return 0;
44 } 46 }
45 47
(...skipping 13 matching lines...) Expand all
59 return 0; 61 return 0;
60 } 62 }
61 63
62 long int ARMELFWriterInfo::computeRelocation(unsigned SymOffset, 64 long int ARMELFWriterInfo::computeRelocation(unsigned SymOffset,
63 unsigned RelOffset, 65 unsigned RelOffset,
64 unsigned RelTy) const { 66 unsigned RelTy) const {
65 assert(0 && 67 assert(0 &&
66 "ARMELFWriterInfo::getAbsoluteLabelMachineRelTy() not implemented"); 68 "ARMELFWriterInfo::getAbsoluteLabelMachineRelTy() not implemented");
67 return 0; 69 return 0;
68 } 70 }
OLDNEW
« no previous file with comments | « lib/Target/ARM/ARMELFWriterInfo.h ('k') | lib/Target/MBlaze/MBlazeELFWriterInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698