From 4f847a849f1dbeeb6c4e3e5c267ded5773675981 Mon Sep 17 00:00:00 2001 From: Pat Gavlin Date: Mon, 27 Jun 2016 09:21:16 -0700 Subject: [PATCH] Add `GTF_DEBUG_NONE`. This is a marker that is used to indicate the absence of debug GenTree flags. --- src/jit/flowgraph.cpp | 8 ++++---- src/jit/gentree.h | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/jit/flowgraph.cpp b/src/jit/flowgraph.cpp index 8c2be6b..7b4b33b 100644 --- a/src/jit/flowgraph.cpp +++ b/src/jit/flowgraph.cpp @@ -20590,7 +20590,7 @@ void Compiler::fgDebugCheckFlags(GenTreePtr tree) { // Print the tree so we can see it in the log. printf("Missing flags on tree [%X]: ", tree); - GenTree::gtDispFlags(chkFlags & ~treeFlags, 0); + GenTree::gtDispFlags(chkFlags & ~treeFlags, GTF_DEBUG_NONE); printf("\n"); gtDispTree(tree); @@ -20598,7 +20598,7 @@ void Compiler::fgDebugCheckFlags(GenTreePtr tree) // Print the tree again so we can see it right after we hook up the debugger. printf("Missing flags on tree [%X]: ", tree); - GenTree::gtDispFlags(chkFlags & ~treeFlags, 0); + GenTree::gtDispFlags(chkFlags & ~treeFlags, GTF_DEBUG_NONE); printf("\n"); gtDispTree(tree); } @@ -20617,7 +20617,7 @@ void Compiler::fgDebugCheckFlags(GenTreePtr tree) { // Print the tree so we can see it in the log. printf("Extra GTF_CALL flags on parent tree [%X]: ", tree); - GenTree::gtDispFlags(treeFlags & ~chkFlags, 0); + GenTree::gtDispFlags(treeFlags & ~chkFlags, GTF_DEBUG_NONE); printf("\n"); gtDispTree(tree); @@ -20625,7 +20625,7 @@ void Compiler::fgDebugCheckFlags(GenTreePtr tree) // Print the tree again so we can see it right after we hook up the debugger. printf("Extra GTF_CALL flags on parent tree [%X]: ", tree); - GenTree::gtDispFlags(treeFlags & ~chkFlags, 0); + GenTree::gtDispFlags(treeFlags & ~chkFlags, GTF_DEBUG_NONE); printf("\n"); gtDispTree(tree); } diff --git a/src/jit/gentree.h b/src/jit/gentree.h index c3c0f39..9955c63 100644 --- a/src/jit/gentree.h +++ b/src/jit/gentree.h @@ -837,11 +837,13 @@ public: //---------------------------------------------------------------- #if defined(DEBUG) + #define GTF_DEBUG_NONE 0x00000000 // No debug flags. + #define GTF_DEBUG_NODE_MORPHED 0x00000001 // the node has been morphed (in the global morphing phase) #define GTF_DEBUG_NODE_SMALL 0x00000002 #define GTF_DEBUG_NODE_LARGE 0x00000004 - #define GTF_DEBUG_NODE_MASK 0x00000007 /// These flags are all node (rather than operation) properties. + #define GTF_DEBUG_NODE_MASK 0x00000007 // These flags are all node (rather than operation) properties. #define GTF_DEBUG_VAR_CSE_REF 0x00800000 // GT_LCL_VAR -- This is a CSE LCL_VAR node #endif // defined(DEBUG) -- 2.7.4