diff options
author | Vedant Kumar <vsk@apple.com> | 2016-06-28 01:14:04 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-06-28 01:14:04 +0000 |
commit | a48d9fe86a627c88a21398db6c18a0108b131444 (patch) | |
tree | eb42ea5f99f9d039d568e5933f529d535ce6d6c4 /llvm/tools/llvm-cov/SourceCoverageView.h | |
parent | b4d95031711e65da8e0f87e8b4d9b8daf69dad00 (diff) | |
download | bcm5719-llvm-a48d9fe86a627c88a21398db6c18a0108b131444.tar.gz bcm5719-llvm-a48d9fe86a627c88a21398db6c18a0108b131444.zip |
Revert "[llvm-cov] Add an -output-dir option for the show sub-command"
This reverts commit r273971. test/profile/instrprof-visibility.cpp is
failing because of an uncaught error in SafelyCloseFileDescriptor.
llvm-svn: 273978
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageView.h')
-rw-r--r-- | llvm/tools/llvm-cov/SourceCoverageView.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/llvm/tools/llvm-cov/SourceCoverageView.h b/llvm/tools/llvm-cov/SourceCoverageView.h index 57b5d941fb5..03c07422964 100644 --- a/llvm/tools/llvm-cov/SourceCoverageView.h +++ b/llvm/tools/llvm-cov/SourceCoverageView.h @@ -101,7 +101,7 @@ struct LineCoverageStats { /// /// A source coverage view and its nested sub-views form a file-oriented /// representation of code coverage data. This view can be printed out by a -/// renderer which implements both the File Creation and Rendering interfaces. +/// renderer which implements the Rendering Interface. class SourceCoverageView { /// A function or file name. StringRef SourceName; @@ -122,19 +122,6 @@ class SourceCoverageView { /// on display. std::vector<InstantiationView> InstantiationSubViews; -public: - /// @name File Creation Interface - /// @{ - - /// \brief Create a file to print a coverage view into. - virtual Expected<std::unique_ptr<raw_ostream>> - createOutputFile(StringRef Path, bool InToplevel) = 0; - - /// \brief Close a file which has been used to print a coverage view. - virtual void closeOutputFile(std::unique_ptr<raw_ostream> OS) = 0; - - /// @} - protected: struct LineRef { StringRef Line; @@ -196,12 +183,6 @@ protected: /// digits. static std::string formatCount(uint64_t N); - /// \brief If directory output is enabled, create a file with \p Path as the - /// suffix. Otherwise, return stdout. - static Expected<std::unique_ptr<raw_ostream>> - createOutputStream(const CoverageViewOptions &Opts, StringRef Path, - StringRef Extension, bool InToplevel); - SourceCoverageView(StringRef SourceName, const MemoryBuffer &File, const CoverageViewOptions &Options, coverage::CoverageData &&CoverageInfo) |