| 15 | class TestInputFilter : public TestBase { |
| 16 | protected: |
| 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) { |
nothing calls this directly
no test coverage detected