diff options
author | Eric Christopher <echristo@gmail.com> | 2015-02-21 08:32:38 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-02-21 08:32:38 +0000 |
commit | d5bc07e8662c3896fb7a207fc1f03006c7be4520 (patch) | |
tree | c5572ea6f9c2cf0fee547d19f1af0b02caf94721 /llvm/lib | |
parent | bb40164e48b7801a1778b608c02dfc6f8cba83c8 (diff) | |
download | bcm5719-llvm-d5bc07e8662c3896fb7a207fc1f03006c7be4520.tar.gz bcm5719-llvm-d5bc07e8662c3896fb7a207fc1f03006c7be4520.zip |
Turn an if+llvm_unreachable into an assert and reword comment.
llvm-svn: 230132
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/Mips/MipsAsmPrinter.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp b/llvm/lib/Target/Mips/MipsAsmPrinter.cpp index aeee5e587e5..d3fd941bfcc 100644 --- a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp +++ b/llvm/lib/Target/Mips/MipsAsmPrinter.cpp @@ -976,13 +976,10 @@ void MipsAsmPrinter::EmitFPCallStub( OutContext.GetOrCreateSymbol("__call_stub_fp_" + Twine(Symbol)); OutStreamer.EmitSymbolAttribute(MType, MCSA_ELF_TypeFunction); OutStreamer.EmitLabel(Stub); - // - // we just handle non pic for now. these function will not be - // called otherwise. when the full stub generation is moved here - // we need to deal with pic. - // - if (TM.getRelocationModel() == Reloc::PIC_) - llvm_unreachable("should not be here if we are compiling pic"); + + // Only handle non-pic for now. + assert(TM.getRelocationModel() != Reloc::PIC_ && + "should not be here if we are compiling pic"); TS.emitDirectiveSetReorder(); // // We need to add a MipsMCExpr class to MCTargetDesc to fully implement |