本文整理汇总了C++中BCMarker::show方法的典型用法代码示例。如果您正苦于以下问题:C++ BCMarker::show方法的具体用法?C++ BCMarker::show怎么用?C++ BCMarker::show使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BCMarker
的用法示例。
在下文中一共展示了BCMarker::show方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setMarker
void TraceBuilder::setMarker(BCMarker marker) {
if (m_curMarker == marker) return;
FTRACE(2, "TraceBuilder changing current marker from {} to {}\n",
m_curMarker.func ? m_curMarker.show() : "<invalid>", marker.show());
assert(marker.valid());
m_curMarker = marker;
}
示例2: setMarker
void IRBuilder::setMarker(BCMarker marker) {
auto const oldMarker = m_state.marker();
if (marker == oldMarker) return;
FTRACE(2, "IRBuilder changing current marker from {} to {}\n",
oldMarker.func ? oldMarker.show() : "<invalid>", marker.show());
assert(marker.valid());
m_state.setMarker(marker);
}
示例3: pushTrace
void TraceBuilder::pushTrace(IRTrace* t, BCMarker marker, Block* b,
const boost::optional<Block::iterator>& where) {
FTRACE(2, "TraceBuilder saving {}@{} and using {}@{}\n",
m_curTrace, m_state.marker().show(), t, marker.show());
assert(t);
assert(bool(b) == bool(where));
assert(IMPLIES(b, b->trace() == t));
m_savedTraces.push(
TraceState{ m_curTrace, m_curBlock, m_state.marker(), m_curWhere });
m_curTrace = t;
m_curBlock = b;
setMarker(marker);
m_curWhere = where;
}
示例4: pushBlock
void TraceBuilder::pushBlock(BCMarker marker, Block* b,
const boost::optional<Block::iterator>& where) {
FTRACE(2, "TraceBuilder saving {}@{} and using {}@{}\n",
m_curBlock, m_state.marker().show(), b, marker.show());
assert(b);
m_savedBlocks.push_back(
BlockState{ m_curBlock, m_state.marker(), m_curWhere });
m_curBlock = b;
setMarker(marker);
m_curWhere = where ? where : b->end();
if (do_assert) {
for (UNUSED auto const& state : m_savedBlocks) {
assert(state.block != b &&
"Can't push a block that's already in the saved stack");
}
}
}