summaryrefslogtreecommitdiff
path: root/flang/include/flang/Semantics/symbol.h
diff options
context:
space:
mode:
Diffstat (limited to 'flang/include/flang/Semantics/symbol.h')
-rw-r--r--flang/include/flang/Semantics/symbol.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/flang/include/flang/Semantics/symbol.h b/flang/include/flang/Semantics/symbol.h
index 3e029c98fc2e..02d7136728c5 100644
--- a/flang/include/flang/Semantics/symbol.h
+++ b/flang/include/flang/Semantics/symbol.h
@@ -54,9 +54,12 @@ public:
const Scope *ancestor() const; // for submodule; nullptr for module
const Scope *parent() const; // for submodule; nullptr for module
void set_scope(const Scope *);
+ bool isDefaultPrivate() const { return isDefaultPrivate_; }
+ void set_isDefaultPrivate(bool yes = true) { isDefaultPrivate_ = yes; }
private:
bool isSubmodule_;
+ bool isDefaultPrivate_{false};
const Scope *scope_{nullptr};
};