comparison lld/MachO/OutputSection.cpp @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 0572611fdcc8
children c4bab56944e8
comparison
equal deleted inserted replaced
173:0572611fdcc8 207:2e18cbf3894f
6 // 6 //
7 //===----------------------------------------------------------------------===// 7 //===----------------------------------------------------------------------===//
8 8
9 #include "OutputSection.h" 9 #include "OutputSection.h"
10 #include "OutputSegment.h" 10 #include "OutputSegment.h"
11 #include "lld/Common/ErrorHandler.h"
12 11
13 using namespace llvm; 12 using namespace llvm;
14 using namespace lld; 13 using namespace lld;
15 using namespace lld::macho; 14 using namespace lld::macho;
16 15
17 uint64_t OutputSection::getSegmentOffset() const { 16 uint64_t OutputSection::getSegmentOffset() const {
18 return addr - parent->firstSection()->addr; 17 return addr - parent->firstSection()->addr;
19 } 18 }
20
21 void OutputSection::mergeInput(InputSection *input) {
22 llvm_unreachable("Cannot merge input section into unmergable output section");
23 }