示例#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);
  }
}
示例#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;
}
示例#3
0
文件: Timer.cpp 项目: 7heaven/softart
void Timer::startTimer() {
  Started = true;
  ActiveTimers->push_back(this);
  Time -= TimeRecord::getCurrentTime(true);
}
示例#4
0
void PassManagerBuilder::addGlobalExtension(
    PassManagerBuilder::ExtensionPointTy Ty,
    PassManagerBuilder::ExtensionFn Fn) {
  GlobalExtensions->push_back(std::make_pair(Ty, Fn));
}
示例#5
0
extrahelp::extrahelp(const char *Help)
  : morehelp(Help) {
  MoreHelp->push_back(Help);
}
示例#6
0
文件: Debug.cpp 项目: 2asoft/freebsd
/// 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);
}