1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Fix the build on Cygwin. Patch by Aaron Gray.

llvm-svn: 74510
This commit is contained in:
Owen Anderson 2009-06-30 05:33:46 +00:00
parent 7d0212b87d
commit 4b4ba9f06c
3 changed files with 5 additions and 5 deletions

View File

@ -34,10 +34,10 @@ class Statistic {
public:
const char *Name;
const char *Desc;
unsigned Value;
volatile llvm::sys::cas_flag Value;
bool Initialized;
unsigned getValue() const { return Value; }
llvm::sys::cas_flag getValue() const { return Value; }
const char *getName() const { return Name; }
const char *getDesc() const { return Desc; }

View File

@ -211,7 +211,7 @@ namespace {
// for each location equivalent Node.
struct Node {
private:
static unsigned Counter;
static volatile sys::cas_flag Counter;
public:
Value *Val;
@ -618,7 +618,7 @@ X("anders-aa", "Andersen's Interprocedural Alias Analysis", false, true);
static RegisterAnalysisGroup<AliasAnalysis> Y(X);
// Initialize Timestamp Counter (static).
unsigned Andersens::Node::Counter = 0;
volatile llvm::sys::cas_flag Andersens::Node::Counter = 0;
ModulePass *llvm::createAndersensPass() { return new Andersens(); }

View File

@ -39,7 +39,7 @@ namespace {
}
typedef std::map<const char*, unsigned, StrCmp> IDMapType;
static unsigned IDCounter = 0; // Unique ID counter
static volatile sys::cas_flag IDCounter = 0; // Unique ID counter
// Static member to ensure initialiation on demand.
static ManagedStatic<IDMapType> IDMap;