mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 07:09:08 +00:00
Fix the build on Cygwin. Patch by Aaron Gray.
llvm-svn: 74510
This commit is contained in:
parent
7d0212b87d
commit
4b4ba9f06c
@ -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; }
|
||||
|
||||
|
@ -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(); }
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user