mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +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.
|
/// the first to the second graph.
|
||||||
///
|
///
|
||||||
void DSGraph::computeNodeMapping(const DSNodeHandle &NH1,
|
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();
|
DSNode *N1 = NH1.getNode(), *N2 = NH2.getNode();
|
||||||
if (N1 == 0 || N2 == 0) return;
|
if (N1 == 0 || N2 == 0) return;
|
||||||
|
|
||||||
DSNodeHandle &Entry = NodeMap[N1];
|
DSNodeHandle &Entry = NodeMap[N1];
|
||||||
if (Entry.getNode()) {
|
if (Entry.getNode()) {
|
||||||
// Termination of recursion!
|
// Termination of recursion!
|
||||||
assert(Entry.getNode() == N2 &&
|
assert(!StrictChecking ||
|
||||||
Entry.getOffset() == (NH2.getOffset()-NH1.getOffset()) &&
|
(Entry.getNode() == N2 &&
|
||||||
|
Entry.getOffset() == (NH2.getOffset()-NH1.getOffset())) &&
|
||||||
"Inconsistent mapping detected!");
|
"Inconsistent mapping detected!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user