void PluginLoader::operator=(const std::string &Filename) { sys::SmartScopedLock<true> Lock(*PluginsLock); std::string Error; if (sys::DynamicLibrary::LoadLibraryPermanently(Filename.c_str(), &Error)) { errs() << "Error opening '" << Filename << "': " << Error << "\n -load request ignored.\n"; } else { Plugins->push_back(Filename); } }
void Timer::startTimer() { sys::SmartScopedLock<true> L(*TimerLock); Started = true; ActiveTimers->push_back(this); TimeRecord TR = getTimeRecord(true); Elapsed -= TR.Elapsed; UserTime -= TR.UserTime; SystemTime -= TR.SystemTime; MemUsed -= TR.MemUsed; PeakMemBase = TR.MemUsed; }
void Timer::startTimer() { Started = true; ActiveTimers->push_back(this); Time -= TimeRecord::getCurrentTime(true); }
void PassManagerBuilder::addGlobalExtension( PassManagerBuilder::ExtensionPointTy Ty, PassManagerBuilder::ExtensionFn Fn) { GlobalExtensions->push_back(std::make_pair(Ty, Fn)); }
extrahelp::extrahelp(const char *Help) : morehelp(Help) { MoreHelp->push_back(Help); }
/// Set the current debug type, as if the -debug-only=X /// option were specified. Note that DebugFlag also needs to be set to true for /// debug output to be produced. /// void setCurrentDebugType(const char *Type) { CurrentDebugType->clear(); CurrentDebugType->push_back(Type); }