diff options
| author | Bill Wendling <isanbard@gmail.com> | 2008-06-26 18:11:45 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2008-06-26 18:11:45 +0000 |
| commit | fca8c15d64a301d3bcc5ff91c849bb0821583a36 (patch) | |
| tree | 68521e390dc982629cd644b5ffd83ba0e294952a /include/llvm | |
| parent | 4983c7c09c1f6b22d113c6488ea28d26ce25aec2 (diff) | |
| download | external_llvm-fca8c15d64a301d3bcc5ff91c849bb0821583a36.zip external_llvm-fca8c15d64a301d3bcc5ff91c849bb0821583a36.tar.gz external_llvm-fca8c15d64a301d3bcc5ff91c849bb0821583a36.tar.bz2 | |
Remove warnings about shadowed and unused variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
| -rw-r--r-- | include/llvm/ADT/StringMap.h | 8 | ||||
| -rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 6 | ||||
| -rw-r--r-- | include/llvm/Support/Allocator.h | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/include/llvm/ADT/StringMap.h b/include/llvm/ADT/StringMap.h index 3e7e9e6..f180b36 100644 --- a/include/llvm/ADT/StringMap.h +++ b/include/llvm/ADT/StringMap.h @@ -130,10 +130,10 @@ class StringMapEntry : public StringMapEntryBase { 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; } diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index f56863c..7261f4e 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1449,9 +1449,9 @@ private: 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() {} diff --git a/include/llvm/Support/Allocator.h b/include/llvm/Support/Allocator.h index 1421148..ffe0d39 100644 --- a/include/llvm/Support/Allocator.h +++ b/include/llvm/Support/Allocator.h @@ -26,7 +26,7 @@ public: 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 @@ public: return static_cast<T*>(Allocate(sizeof(T),AlignOf<T>::Alignment)); } - void Deallocate(void *Ptr) {} + void Deallocate(void */*Ptr*/) {} void PrintStats() const; }; |
