This is an archive of the discontinued LLVM Phabricator instance.

[flang] More clean-up of CookedSource API
ClosedPublic

Authored by klausler on Sep 14 2020, 2:07 PM.

Details

Summary

The std::string holding the content of a CookedSource no longer
needs to be exposed in its API after the recent work that allows
the parsing context to hold multiple instances of a CookedSource.
So clean the API. These changes were extracted from some work in
progress that was made easier by the API changes.

Diff Detail

Event Timeline

klausler created this revision.Sep 14 2020, 2:07 PM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Sep 14 2020, 2:07 PM
PeteSteinfeld accepted this revision.Sep 14 2020, 2:26 PM

All of these changes build, test, and look good.

Note that I'm seeing diffs in f18.cpp when I run clang-format, but they're unrelated to these changes.

This revision is now accepted and ready to land.Sep 14 2020, 2:26 PM
tskeith accepted this revision.Sep 14 2020, 2:37 PM
This revision was automatically updated to reflect the committed changes.