mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Add new argument to disable checking
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9922 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user