aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Evaluate/formatting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'flang/lib/Evaluate/formatting.cpp')
-rw-r--r--flang/lib/Evaluate/formatting.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/flang/lib/Evaluate/formatting.cpp b/flang/lib/Evaluate/formatting.cpp
index ec5dc0b..5632015 100644
--- a/flang/lib/Evaluate/formatting.cpp
+++ b/flang/lib/Evaluate/formatting.cpp
@@ -252,6 +252,13 @@ llvm::raw_ostream &ActualArgument::AsFortran(llvm::raw_ostream &o) const {
return o;
}
+std::string ActualArgument::AsFortran() const {
+ std::string result;
+ llvm::raw_string_ostream sstream(result);
+ AsFortran(sstream);
+ return result;
+}
+
llvm::raw_ostream &SpecificIntrinsic::AsFortran(llvm::raw_ostream &o) const {
return o << name;
}