[llvm-commits] [poolalloc] r159163 - in /poolalloc/trunk: include/dsa/AddressTakenAnalysis.h include/poolalloc/PoolAllocate.h lib/AssistDS/DynCount.cpp lib/DSA/DSTest.cpp
Will Dietz
wdietz2 at illinois.edu
Mon Jun 25 14:26:10 PDT 2012
Author: wdietz2
Date: Mon Jun 25 16:26:09 2012
New Revision: 159163
URL: http://llvm.org/viewvc/llvm-project?rev=159163&view=rev
Log:
Fix code to satisfy -Wextra-semi and -Wunused-private-field.
Modified:
poolalloc/trunk/include/dsa/AddressTakenAnalysis.h
poolalloc/trunk/include/poolalloc/PoolAllocate.h
poolalloc/trunk/lib/AssistDS/DynCount.cpp
poolalloc/trunk/lib/DSA/DSTest.cpp
Modified: poolalloc/trunk/include/dsa/AddressTakenAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/include/dsa/AddressTakenAnalysis.h?rev=159163&r1=159162&r2=159163&view=diff
==============================================================================
--- poolalloc/trunk/include/dsa/AddressTakenAnalysis.h (original)
+++ poolalloc/trunk/include/dsa/AddressTakenAnalysis.h Mon Jun 25 16:26:09 2012
@@ -30,7 +30,7 @@
std::set<Function*> addressTakenFunctions;
public:
static char ID;
- AddressTakenAnalysis() : ModulePass (ID) { };
+ AddressTakenAnalysis() : ModulePass (ID) {}
virtual ~AddressTakenAnalysis();
bool runOnModule(llvm::Module&);
Modified: poolalloc/trunk/include/poolalloc/PoolAllocate.h
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/include/poolalloc/PoolAllocate.h?rev=159163&r1=159162&r2=159163&view=diff
==============================================================================
--- poolalloc/trunk/include/poolalloc/PoolAllocate.h (original)
+++ poolalloc/trunk/include/poolalloc/PoolAllocate.h Mon Jun 25 16:26:09 2012
@@ -522,7 +522,6 @@
Value * TheGlobalPool;
DSGraph * CombinedDSGraph;
EquivalenceClasses<const GlobalValue*> GlobalECs;
- TargetData * TD;
bool CompleteDSA;
public:
static char ID;
@@ -565,7 +564,6 @@
// FIXME: Is this used? Should it be removed?
class PoolAllocateMultipleGlobalPool : public PoolAllocate {
- TargetData * TD;
void ProcessFunctionBodySimple(Function& F, TargetData & TD);
/// Mapping between DSNodes and Pool descriptors. For this pass, it is a
/// one-to-one relationship.
Modified: poolalloc/trunk/lib/AssistDS/DynCount.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/DynCount.cpp?rev=159163&r1=159162&r2=159163&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/DynCount.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/DynCount.cpp Mon Jun 25 16:26:09 2012
@@ -36,7 +36,7 @@
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<TargetData>();
AU.addRequired<dsa::TypeSafety<TDDataStructures> >();
- };
+ }
};
char Dyncount::ID = 0;
Modified: poolalloc/trunk/lib/DSA/DSTest.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/DSTest.cpp?rev=159163&r1=159162&r2=159163&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/DSTest.cpp (original)
+++ poolalloc/trunk/lib/DSA/DSTest.cpp Mon Jun 25 16:26:09 2012
@@ -101,7 +101,7 @@
typedef SmallVector<unsigned,3> OffsetVectorTy;
OffsetVectorTy offsets;
- NodeValue() {};
+ NodeValue() {}
void operator=(const NodeValue&);
NodeValue(const NodeValue&);
@@ -227,7 +227,7 @@
: F(NULL), V(NULL), serialized(raw) {
initialize(M,DS);
assert(V && NH.getNode() && "Parse failed!");
- };
+ }
/// Accessors
DSNodeHandle & getNodeH() { return NH; }
More information about the llvm-commits
mailing list