Added pure llvm pipelines

This commit is contained in:
Massimo Fioravanti
2021-05-28 18:59:42 +02:00
committed by Alessandro Di Federico
parent a42c219189
commit 4e4cb000a9
12 changed files with 266 additions and 42 deletions
@@ -88,6 +88,18 @@ private:
std::set<std::string> ContainedStrings;
};
struct ExamplePass : public llvm::ModulePass {
static char ID;
ExamplePass() : llvm::ModulePass(ID) {}
bool runOnModule(llvm::Module &M) override { return true; }
};
char ExamplePass::ID = '_';
static llvm::RegisterPass<ExamplePass> X2("ExamplePass", "ExamplePass");
char StringContainer::ID;
class ExampleRegistryLibrary : public AutoEnforcerLibraryRegistry {