search for: testcategory

Displaying 2 results from an estimated 2 matches for "testcategory".

2018 Jul 10
2
custom LLVM Pass with options fails to load
..."llvm/IR/PassManager.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Support/CommandLine.h" #include <string> namespace { // Apply a custom category to all command-line options so that they are the // only ones displayed. static llvm::cl::OptionCategory testCategory("testPass Options"); static llvm::cl::opt<std::string> testOpt("testOpt", llvm::cl::desc("testOpt"), llvm::cl::value_desc("test pass opt"), llvm::cl::cat(testCategory)); } namespace test { char TestPass::ID = 0; static ::llvm::RegisterPass<t...
2018 Jul 12
2
custom LLVM Pass with options fails to load
...t; >> #include "llvm/Support/CommandLine.h" >> >> #include <string> >> >> namespace >> { >> // Apply a custom category to all command-line options so that they are the >> // only ones displayed. >> static llvm::cl::OptionCategory testCategory("testPass Options"); >> >> static llvm::cl::opt<std::string> >> testOpt("testOpt", llvm::cl::desc("testOpt"), >> llvm::cl::value_desc("test pass opt"), >> llvm::cl::cat(testCategory)); >> }...