[llvm-commits] [llvm] r140160 - in /llvm/trunk: include/llvm/MC/MCInstrDesc.h lib/CodeGen/SelectionDAG/InstrEmitter.cpp lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp lib/Target/ARM/ARMInstrInfo.td lib/Target/ARM/ARMInstrThumb2.td utils/TableGen/CodeGenInstruction.cpp utils/TableGen/CodeGenInstruction.h utils/TableGen/InstrInfoEmitter.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Tue Sep 20 15:24:14 PDT 2011
On Sep 20, 2011, at 11:22 AM, Andrew Trick wrote:
> --- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
> +++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Tue Sep 20 13:22:31 2011
> @@ -179,7 +179,12 @@
>
> void TargetLowering::AdjustInstrPostInstrSelection(MachineInstr *MI,
> SDNode *Node) const {
> - // Do nothing unless the target overrides it.
> +#ifndef NDEBUG
> + dbgs() << "If a target marks an instruction with "
> + "'hasPostISelHook', it must implement "
> + "TargetLowering::AdjustInstrPostInstrSelection!";
> +#endif
> + llvm_unreachable(0);
> }
>
llvm_unreachable takes a (const char *msg) argument that is optimized away in NDEBUG builds.
/jakob
More information about the llvm-commits
mailing list