@@ -386,16 +386,13 @@ class SectionChunk final : public Chunk {
386
386
inline size_t Chunk::getSize () const {
387
387
if (isa<SectionChunk>(this ))
388
388
return static_cast <const SectionChunk *>(this )->getSize ();
389
- else
390
- return static_cast <const NonSectionChunk *>(this )->getSize ();
389
+ return static_cast <const NonSectionChunk *>(this )->getSize ();
391
390
}
392
391
393
392
inline uint32_t Chunk::getOutputCharacteristics () const {
394
393
if (isa<SectionChunk>(this ))
395
394
return static_cast <const SectionChunk *>(this )->getOutputCharacteristics ();
396
- else
397
- return static_cast <const NonSectionChunk *>(this )
398
- ->getOutputCharacteristics ();
395
+ return static_cast <const NonSectionChunk *>(this )->getOutputCharacteristics ();
399
396
}
400
397
401
398
inline void Chunk::writeTo (uint8_t *buf) const {
@@ -408,8 +405,7 @@ inline void Chunk::writeTo(uint8_t *buf) const {
408
405
inline StringRef Chunk::getSectionName () const {
409
406
if (isa<SectionChunk>(this ))
410
407
return static_cast <const SectionChunk *>(this )->getSectionName ();
411
- else
412
- return static_cast <const NonSectionChunk *>(this )->getSectionName ();
408
+ return static_cast <const NonSectionChunk *>(this )->getSectionName ();
413
409
}
414
410
415
411
inline void Chunk::getBaserels (std::vector<Baserel> *res) {
@@ -422,15 +418,13 @@ inline void Chunk::getBaserels(std::vector<Baserel> *res) {
422
418
inline StringRef Chunk::getDebugName () const {
423
419
if (isa<SectionChunk>(this ))
424
420
return static_cast <const SectionChunk *>(this )->getDebugName ();
425
- else
426
- return static_cast <const NonSectionChunk *>(this )->getDebugName ();
421
+ return static_cast <const NonSectionChunk *>(this )->getDebugName ();
427
422
}
428
423
429
424
inline MachineTypes Chunk::getMachine () const {
430
425
if (isa<SectionChunk>(this ))
431
426
return static_cast <const SectionChunk *>(this )->getMachine ();
432
- else
433
- return static_cast <const NonSectionChunk *>(this )->getMachine ();
427
+ return static_cast <const NonSectionChunk *>(this )->getMachine ();
434
428
}
435
429
436
430
inline chpe_range_type Chunk::getArm64ECRangeType () const {
0 commit comments