DwarfDebug unconditionally assumes for all call instructions the 0th
operand is the callee operand, which seems to be true for other targets,
but not for WebAssembly. This adds TargetInstrInfo::getCallOperand
method whose default implementation returns getOperand(0) and makes
WebAssembly overrides it to use its own utility method to get the callee
operand.
Edit:
This also fixes an existing bug in WebAssembly::getCalleeOp, which was
uncovered by this CL.
By doing this, the patch does a bit more then described in the summary. I think this is should be a separate change.