summaryrefslogtreecommitdiff
path: root/flang/lib/Semantics/semantics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'flang/lib/Semantics/semantics.cpp')
-rw-r--r--flang/lib/Semantics/semantics.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/flang/lib/Semantics/semantics.cpp b/flang/lib/Semantics/semantics.cpp
index 637088ff0171..58dc1f218b56 100644
--- a/flang/lib/Semantics/semantics.cpp
+++ b/flang/lib/Semantics/semantics.cpp
@@ -663,6 +663,10 @@ void SemanticsContext::DumpSymbols(llvm::raw_ostream &os) {
DoDumpSymbols(os, globalScope());
}
+ProgramTree &SemanticsContext::SaveProgramTree(ProgramTree &&tree) {
+ return programTrees_.emplace_back(std::move(tree));
+}
+
void Semantics::DumpSymbols(llvm::raw_ostream &os) { context_.DumpSymbols(os); }
void Semantics::DumpSymbolsSources(llvm::raw_ostream &os) const {