MCPcopy Create free account
hub / github.com/GANGE666/xVMP / createWriter

Method createWriter

src/unittests/ProfileData/SampleProfTest.cpp:45–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 SampleProfTest() : Writer(), Reader() {}
44
45 void createWriter(SampleProfileFormat Format, StringRef Profile) {
46 std::error_code EC;
47 std::unique_ptr<raw_ostream> OS(
48 new raw_fd_ostream(Profile, EC, sys::fs::F_None));
49 auto WriterOrErr = SampleProfileWriter::create(OS, Format);
50 ASSERT_TRUE(NoError(WriterOrErr.getError()));
51 Writer = std::move(WriterOrErr.get());
52 }
53
54 void readProfile(const Module &M, StringRef Profile) {
55 auto ReaderOrErr = SampleProfileReader::create(Profile, Context);

Callers

nothing calls this directly

Calls 5

NoErrorFunction · 0.85
createFunction · 0.50
moveFunction · 0.50
getErrorMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected