[llvm-commits] [llvm] r52791 - in /llvm/trunk/include/llvm: ADT/StringMap.h CodeGen/SelectionDAGNodes.h Support/Allocator.h

Bill Wendling isanbard at gmail.com
Thu Jun 26 11:11:46 PDT 2008


Author: void
Date: Thu Jun 26 13:11:45 2008
New Revision: 52791

URL: http://llvm.org/viewvc/llvm-project?rev=52791&view=rev
Log:
Remove warnings about shadowed and unused variables.

Modified:
    llvm/trunk/include/llvm/ADT/StringMap.h
    llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
    llvm/trunk/include/llvm/Support/Allocator.h

Modified: llvm/trunk/include/llvm/ADT/StringMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/StringMap.h?rev=52791&r1=52790&r2=52791&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/StringMap.h (original)
+++ llvm/trunk/include/llvm/ADT/StringMap.h Thu Jun 26 13:11:45 2008
@@ -130,10 +130,10 @@
 public:
   ValueTy second;
 
-  explicit StringMapEntry(unsigned StrLen)
-    : StringMapEntryBase(StrLen), second() {}
-  StringMapEntry(unsigned StrLen, const ValueTy &V)
-    : StringMapEntryBase(StrLen), second(V) {}
+  explicit StringMapEntry(unsigned strLen)
+    : StringMapEntryBase(strLen), second() {}
+  StringMapEntry(unsigned strLen, const ValueTy &V)
+    : StringMapEntryBase(strLen), second(V) {}
 
   const ValueTy &getValue() const { return second; }
   ValueTy &getValue() { return second; }

Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h?rev=52791&r1=52790&r2=52791&view=diff

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Thu Jun 26 13:11:45 2008
@@ -1449,9 +1449,9 @@
   unsigned Alignment;
 
 public:
-  MemSDNode(unsigned Opc, SDVTList VTs, const Value *SrcValue,
-            unsigned Alignment)
-    : SDNode(Opc, VTs), SrcValue(SrcValue), Alignment(Alignment) {}
+  MemSDNode(unsigned Opc, SDVTList VTs, const Value *srcValue,
+            unsigned alignment)
+    : SDNode(Opc, VTs), SrcValue(srcValue), Alignment(alignment) {}
   
   virtual ~MemSDNode() {}
 

Modified: llvm/trunk/include/llvm/Support/Allocator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Allocator.h?rev=52791&r1=52790&r2=52791&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/Allocator.h (original)
+++ llvm/trunk/include/llvm/Support/Allocator.h Thu Jun 26 13:11:45 2008
@@ -26,7 +26,7 @@
   
   void Reset() {}
 
-  void *Allocate(size_t Size, size_t Alignment) { return malloc(Size); }
+  void *Allocate(size_t Size, size_t /*Alignment*/) { return malloc(Size); }
   
   template <typename T>
   T *Allocate() { return static_cast<T*>(malloc(sizeof(T))); }
@@ -55,7 +55,7 @@
     return static_cast<T*>(Allocate(sizeof(T),AlignOf<T>::Alignment));
   }
   
-  void Deallocate(void *Ptr) {}
+  void Deallocate(void */*Ptr*/) {}
 
   void PrintStats() const;
 };





More information about the llvm-commits mailing list