Lines Matching refs:config
24 #include <llvm/Config/config.h>
33 #include <bcc/Config/BuildInfo.h>
34 #include <bcc/Config/Config.h>
166 CompilerConfig *config = NULL;
169 config = new (std::nothrow) DefaultCompilerConfig();
171 config = new (std::nothrow) CompilerConfig(OptTargetTriple);
173 if (config == NULL) {
179 if (config->getTriple().find("arm") != std::string::npos) {
185 config->setFeatureString(fv);
188 if (config->getTriple().find("i686") != std::string::npos) {
189 config->setCPU("atom");
192 // Setup the config according to the value of command line option.
194 config->setRelocationModel(llvm::Reloc::PIC_);
197 case '0': config->setOptimizationLevel(llvm::CodeGenOpt::None); break;
198 case '1': config->setOptimizationLevel(llvm::CodeGenOpt::Less); break;
199 case '3': config->setOptimizationLevel(llvm::CodeGenOpt::Aggressive); break;
202 config->setOptimizationLevel(llvm::CodeGenOpt::Default);
207 pCompilerDriver.setConfig(config);
208 Compiler::ErrorCode result = compiler->config(*config);