LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::SlowOperationInformer Class Reference

#include <SlowOperationInformer.h>

Collaboration diagram for llvm::SlowOperationInformer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SlowOperationInformer (const std::string &Name)
 ~SlowOperationInformer ()
void progress (unsigned Amount)
void progress (unsigned Current, unsigned Maximum)

Detailed Description

Definition at line 38 of file SlowOperationInformer.h.


Constructor & Destructor Documentation

SlowOperationInformer::SlowOperationInformer const std::string &  Name  ) 
 

Definition at line 47 of file SlowOperationInformer.cpp.

References NestedSOI, OldSigIntHandler, OperationCancelled, ShouldShowStatus, SigAlarmHandler(), and SigIntHandler().

SlowOperationInformer::~SlowOperationInformer  ) 
 

Definition at line 60 of file SlowOperationInformer.cpp.

References NestedSOI, and OldSigIntHandler.


Member Function Documentation

void llvm::SlowOperationInformer::progress unsigned  Current,
unsigned  Maximum
[inline]
 

progress - Same as the method above, but this performs the division for you, and helps you avoid overflow if you are dealing with largish numbers.

Definition at line 57 of file SlowOperationInformer.h.

References progress().

void SlowOperationInformer::progress unsigned  Amount  ) 
 

progress - Clients should periodically call this method when they are in an exception-safe state. The Amount variable should indicate how far along the operation is, given in 1/10ths of a percent (in other words, Amount should range from 0 to 1000).

Definition at line 78 of file SlowOperationInformer.cpp.

References OperationCancelled, and ShouldShowStatus.

Referenced by llvm::ProgramInfo::getSourceFiles(), llvm::ProgramInfo::getSourceFunctions(), and progress().


The documentation for this class was generated from the following files: