mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-21 11:38:35 +00:00
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:
parent
e3821c79bc
commit
5ec56cc438
@ -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