Fix the build on Cygwin. Patch by Aaron Gray.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74510 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2009-06-30 05:33:46 +00:00
parent e3821c79bc
commit 5ec56cc438
3 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

@ -39,7 +39,7 @@ namespace {
} }
typedef std::map<const char*, unsigned, StrCmp> IDMapType; 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 member to ensure initialiation on demand.
static ManagedStatic<IDMapType> IDMap; static ManagedStatic<IDMapType> IDMap;