summaryrefslogtreecommitdiff
path: root/src/pass.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pass.h')
-rw-r--r--src/pass.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pass.h b/src/pass.h
index 1fcd88e0c..faf674c49 100644
--- a/src/pass.h
+++ b/src/pass.h
@@ -123,6 +123,16 @@ struct PassRunner {
~PassRunner();
+ // When running a pass runner within another pass runner, this
+ // flag should be set. This influences how pass debugging works,
+ // and may influence other things in the future too.
+ void setIsNested(bool nested) {
+ isNested = nested;
+ }
+
+protected:
+ bool isNested = false;
+
private:
void doAdd(Pass* pass);