mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Add new argument to disable checking
llvm-svn: 9922
This commit is contained in:
parent
fb07beec2c
commit
95d0b541c1
@ -1646,15 +1646,17 @@ void DSGraph::mergeInGlobalsGraph() {
|
||||
/// the first to the second graph.
|
||||
///
|
||||
void DSGraph::computeNodeMapping(const DSNodeHandle &NH1,
|
||||
const DSNodeHandle &NH2, NodeMapTy &NodeMap) {
|
||||
const DSNodeHandle &NH2, NodeMapTy &NodeMap,
|
||||
bool StrictChecking) {
|
||||
DSNode *N1 = NH1.getNode(), *N2 = NH2.getNode();
|
||||
if (N1 == 0 || N2 == 0) return;
|
||||
|
||||
DSNodeHandle &Entry = NodeMap[N1];
|
||||
if (Entry.getNode()) {
|
||||
// Termination of recursion!
|
||||
assert(Entry.getNode() == N2 &&
|
||||
Entry.getOffset() == (NH2.getOffset()-NH1.getOffset()) &&
|
||||
assert(!StrictChecking ||
|
||||
(Entry.getNode() == N2 &&
|
||||
Entry.getOffset() == (NH2.getOffset()-NH1.getOffset())) &&
|
||||
"Inconsistent mapping detected!");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user