diff options
author | Sean Fertile <sfertile@ca.ibm.com> | 2019-07-30 15:37:01 +0000 |
---|---|---|
committer | Sean Fertile <sfertile@ca.ibm.com> | 2019-07-30 15:37:01 +0000 |
commit | 39f35038140d2e21023eefcc7acc65c5b68fc77f (patch) | |
tree | a802eef10fcbd462c2dcc26f4534f988c600898b /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 027bb52790ed825788806799f6b7391e2f17c2c1 (diff) | |
download | bcm5719-llvm-39f35038140d2e21023eefcc7acc65c5b68fc77f.tar.gz bcm5719-llvm-39f35038140d2e21023eefcc7acc65c5b68fc77f.zip |
Address post commit review comments on revision 366727.
Addresses number of comment made on D64652 after commiting:
- Reorders function decls in the TargetLoweringObjectFileXCOFF class.
- Fix comment in MCSectionXCOFF to include description of external reference
csects.
- Convert several llvm_unreachables to report_fatal_error
- Convert several dyn_casts to casts as they are expected not to fail.
- Avoid copying DataLayout object.
llvm-svn: 367324
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index a3bf69ae4ef..ac7c4c50ae4 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -1826,7 +1826,7 @@ MCSection *TargetLoweringObjectFileWasm::getStaticDtorSection( //===----------------------------------------------------------------------===// MCSection *TargetLoweringObjectFileXCOFF::getExplicitSectionGlobal( const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { - llvm_unreachable("XCOFF explicit sections not yet implemented."); + report_fatal_error("XCOFF explicit sections not yet implemented."); } MCSection *TargetLoweringObjectFileXCOFF::SelectSectionForGlobal( @@ -1851,7 +1851,7 @@ MCSection *TargetLoweringObjectFileXCOFF::SelectSectionForGlobal( bool TargetLoweringObjectFileXCOFF::shouldPutJumpTableInFunctionSection( bool UsesLabelDifference, const Function &F) const { - llvm_unreachable("TLOF XCOFF not yet implemented."); + report_fatal_error("TLOF XCOFF not yet implemented."); } void TargetLoweringObjectFileXCOFF::Initialize(MCContext &Ctx, @@ -1864,16 +1864,16 @@ void TargetLoweringObjectFileXCOFF::Initialize(MCContext &Ctx, MCSection *TargetLoweringObjectFileXCOFF::getStaticCtorSection( unsigned Priority, const MCSymbol *KeySym) const { - llvm_unreachable("XCOFF ctor section not yet implemented."); + report_fatal_error("XCOFF ctor section not yet implemented."); } MCSection *TargetLoweringObjectFileXCOFF::getStaticDtorSection( unsigned Priority, const MCSymbol *KeySym) const { - llvm_unreachable("XCOFF dtor section not yet implemented."); + report_fatal_error("XCOFF dtor section not yet implemented."); } const MCExpr *TargetLoweringObjectFileXCOFF::lowerRelativeReference( const GlobalValue *LHS, const GlobalValue *RHS, const TargetMachine &TM) const { - llvm_unreachable("XCOFF not yet implemented."); + report_fatal_error("XCOFF not yet implemented."); } |