mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-04 11:27:34 +00:00
[llvm-cov] Constify some methods (NFC)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281010 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
006e320c47
commit
85e096da4e
@ -29,7 +29,8 @@ void CoveragePrinter::StreamDestructor::operator()(raw_ostream *OS) const {
|
||||
}
|
||||
|
||||
std::string CoveragePrinter::getOutputPath(StringRef Path, StringRef Extension,
|
||||
bool InToplevel, bool Relative) {
|
||||
bool InToplevel,
|
||||
bool Relative) const {
|
||||
assert(Extension.size() && "The file extension may not be empty");
|
||||
|
||||
SmallString<256> FullPath;
|
||||
@ -53,7 +54,7 @@ std::string CoveragePrinter::getOutputPath(StringRef Path, StringRef Extension,
|
||||
|
||||
Expected<CoveragePrinter::OwnedStream>
|
||||
CoveragePrinter::createOutputStream(StringRef Path, StringRef Extension,
|
||||
bool InToplevel) {
|
||||
bool InToplevel) const {
|
||||
if (!Opts.hasOutputDirectory())
|
||||
return OwnedStream(&outs());
|
||||
|
||||
|
@ -115,12 +115,12 @@ protected:
|
||||
/// false, skip the ToplevelDir component. If \p Relative is false, skip the
|
||||
/// OutputDir component.
|
||||
std::string getOutputPath(StringRef Path, StringRef Extension,
|
||||
bool InToplevel, bool Relative = true);
|
||||
bool InToplevel, bool Relative = true) const;
|
||||
|
||||
/// \brief If directory output is enabled, create a file in that directory
|
||||
/// at the path given by getOutputPath(). Otherwise, return stdout.
|
||||
Expected<OwnedStream> createOutputStream(StringRef Path, StringRef Extension,
|
||||
bool InToplevel);
|
||||
bool InToplevel) const;
|
||||
|
||||
/// \brief Return the sub-directory name for file coverage reports.
|
||||
static StringRef getCoverageDir() { return "coverage"; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user