本文整理汇总了C++中ProtocolConformanceRef::dump方法的典型用法代码示例。如果您正苦于以下问题:C++ ProtocolConformanceRef::dump方法的具体用法?C++ ProtocolConformanceRef::dump怎么用?C++ ProtocolConformanceRef::dump使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProtocolConformanceRef
的用法示例。
在下文中一共展示了ProtocolConformanceRef::dump方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: make_tuple
/// \brief Given a conformance \p C and a protocol requirement \p Requirement,
/// search the witness table for the conformance and return the witness thunk
/// for the requirement, together with any substitutions for the conformance.
std::tuple<SILFunction *, SILWitnessTable *, ArrayRef<Substitution>>
SILModule::lookUpFunctionInWitnessTable(ProtocolConformanceRef C,
SILDeclRef Requirement) {
// Look up the witness table associated with our protocol conformance from the
// SILModule.
auto Ret = lookUpWitnessTable(C);
// If no witness table was found, bail.
if (!Ret) {
DEBUG(llvm::dbgs() << " Failed speculative lookup of witness for: ";
C.dump(); Requirement.dump());
return std::make_tuple(nullptr, nullptr, ArrayRef<Substitution>());
}