MCPcopy Create free account
hub / github.com/Samsung/UTopia / load

Method load

tests/inputfilter/TestInputFilter.cpp:17–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15class TestInputFilter : public TestBase {
16protected:
17 bool load(const SourceFileManager &SFM, std::string Name) {
18 auto Path = SFM.getFilePath(Name);
19 if (Path.empty())
20 return false;
21 std::vector<std::string> SrcPaths = {Path};
22 auto CH = TestHelperFactory().createCompileHelper(
23 SFM.getSrcDirPath(), SrcPaths, "-O0 -g", CompileHelper::SourceType_CPP);
24 if (!CH)
25 return false;
26
27 SC = CH->load();
28 if (!SC)
29 return false;
30
31 IRAH = std::make_unique<IRAccessHelper>(SC->getLLVMModule());
32 if (!IRAH)
33 return false;
34
35 AIMap = std::make_unique<DebugInfoMap>(*SC);
36 if (!AIMap)
37 return false;
38
39 return true;
40 }
41
42 std::shared_ptr<RDNode> generateRDNode(std::string FuncName, unsigned BIdx,
43 unsigned IIdx, int OIdx) {

Callers

nothing calls this directly

Calls 6

TestHelperFactoryClass · 0.85
emptyMethod · 0.80
createCompileHelperMethod · 0.80
getSrcDirPathMethod · 0.80
getLLVMModuleMethod · 0.80
getFilePathMethod · 0.45

Tested by

no test coverage detected