[llvm-commits] [llvm] r74510 - in /llvm/trunk: include/llvm/ADT/Statistic.h lib/Analysis/IPA/Andersens.cpp lib/Support/Annotation.cpp
Owen Anderson
resistor at mac.com
Mon Jun 29 22:33:46 PDT 2009
Author: resistor
Date: Tue Jun 30 00:33:46 2009
New Revision: 74510
URL: http://llvm.org/viewvc/llvm-project?rev=74510&view=rev
Log:
Fix the build on Cygwin. Patch by Aaron Gray.
Modified:
llvm/trunk/include/llvm/ADT/Statistic.h
llvm/trunk/lib/Analysis/IPA/Andersens.cpp
llvm/trunk/lib/Support/Annotation.cpp
Modified: llvm/trunk/include/llvm/ADT/Statistic.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Statistic.h?rev=74510&r1=74509&r2=74510&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Statistic.h (original)
+++ llvm/trunk/include/llvm/ADT/Statistic.h Tue Jun 30 00:33:46 2009
@@ -34,10 +34,10 @@
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; }
Modified: llvm/trunk/lib/Analysis/IPA/Andersens.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/IPA/Andersens.cpp?rev=74510&r1=74509&r2=74510&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/IPA/Andersens.cpp (original)
+++ llvm/trunk/lib/Analysis/IPA/Andersens.cpp Tue Jun 30 00:33:46 2009
@@ -211,7 +211,7 @@
// for each location equivalent Node.
struct Node {
private:
- static unsigned Counter;
+ static volatile sys::cas_flag Counter;
public:
Value *Val;
@@ -618,7 +618,7 @@
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(); }
Modified: llvm/trunk/lib/Support/Annotation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Annotation.cpp?rev=74510&r1=74509&r2=74510&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Annotation.cpp (original)
+++ llvm/trunk/lib/Support/Annotation.cpp Tue Jun 30 00:33:46 2009
@@ -39,7 +39,7 @@
}
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;
More information about the llvm-commits
mailing list