mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Revert "InstrProf: Add unit tests for the profile reader and writer"
This added API to the InstrProfWriter to write to a string so I could write unittests without using temp files. This doesn't really work, since the format has tighter alignment requirements than a char. This reverts r229478 and its follow-up, r229481. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -95,9 +95,6 @@ public:
|
||||
/// Factory method to create an appropriately typed reader for the given
|
||||
/// instrprof file.
|
||||
static ErrorOr<std::unique_ptr<InstrProfReader>> create(std::string Path);
|
||||
|
||||
static ErrorOr<std::unique_ptr<InstrProfReader>>
|
||||
create(std::unique_ptr<MemoryBuffer> Buffer);
|
||||
};
|
||||
|
||||
/// Reader for the simple text based instrprof format.
|
||||
@ -297,9 +294,6 @@ public:
|
||||
/// Factory method to create an indexed reader.
|
||||
static ErrorOr<std::unique_ptr<IndexedInstrProfReader>>
|
||||
create(std::string Path);
|
||||
|
||||
static ErrorOr<std::unique_ptr<IndexedInstrProfReader>>
|
||||
create(std::unique_ptr<MemoryBuffer> Buffer);
|
||||
};
|
||||
|
||||
} // end namespace llvm
|
||||
|
@ -41,12 +41,8 @@ public:
|
||||
std::error_code addFunctionCounts(StringRef FunctionName,
|
||||
uint64_t FunctionHash,
|
||||
ArrayRef<uint64_t> Counters);
|
||||
/// Write the profile to \c OS
|
||||
/// Ensure that all data is written to disk.
|
||||
void write(raw_fd_ostream &OS);
|
||||
/// Write the profile, returning the raw data. For testing.
|
||||
std::string writeString();
|
||||
private:
|
||||
std::pair<uint64_t, uint64_t> writeImpl(raw_ostream &OS);
|
||||
};
|
||||
|
||||
} // end namespace llvm
|
||||
|
Reference in New Issue
Block a user