Example #1
0
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);
  }
}
Example #2
0
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;
}
Example #3
0
void Timer::startTimer() {
  Started = true;
  ActiveTimers->push_back(this);
  Time -= TimeRecord::getCurrentTime(true);
}
Example #4
0
void PassManagerBuilder::addGlobalExtension(
    PassManagerBuilder::ExtensionPointTy Ty,
    PassManagerBuilder::ExtensionFn Fn) {
  GlobalExtensions->push_back(std::make_pair(Ty, Fn));
}
Example #5
0
extrahelp::extrahelp(const char *Help)
  : morehelp(Help) {
  MoreHelp->push_back(Help);
}
Example #6
0
/// 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);
}