mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Remove warnings about shadowed and unused variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52791 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8e7de8fc58
commit
8032020cf2
@ -130,10 +130,10 @@ class StringMapEntry : public StringMapEntryBase {
|
|||||||
public:
|
public:
|
||||||
ValueTy second;
|
ValueTy second;
|
||||||
|
|
||||||
explicit StringMapEntry(unsigned StrLen)
|
explicit StringMapEntry(unsigned strLen)
|
||||||
: StringMapEntryBase(StrLen), second() {}
|
: StringMapEntryBase(strLen), second() {}
|
||||||
StringMapEntry(unsigned StrLen, const ValueTy &V)
|
StringMapEntry(unsigned strLen, const ValueTy &V)
|
||||||
: StringMapEntryBase(StrLen), second(V) {}
|
: StringMapEntryBase(strLen), second(V) {}
|
||||||
|
|
||||||
const ValueTy &getValue() const { return second; }
|
const ValueTy &getValue() const { return second; }
|
||||||
ValueTy &getValue() { return second; }
|
ValueTy &getValue() { return second; }
|
||||||
|
@ -1449,9 +1449,9 @@ private:
|
|||||||
unsigned Alignment;
|
unsigned Alignment;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MemSDNode(unsigned Opc, SDVTList VTs, const Value *SrcValue,
|
MemSDNode(unsigned Opc, SDVTList VTs, const Value *srcValue,
|
||||||
unsigned Alignment)
|
unsigned alignment)
|
||||||
: SDNode(Opc, VTs), SrcValue(SrcValue), Alignment(Alignment) {}
|
: SDNode(Opc, VTs), SrcValue(srcValue), Alignment(alignment) {}
|
||||||
|
|
||||||
virtual ~MemSDNode() {}
|
virtual ~MemSDNode() {}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ public:
|
|||||||
|
|
||||||
void Reset() {}
|
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>
|
template <typename T>
|
||||||
T *Allocate() { return static_cast<T*>(malloc(sizeof(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));
|
return static_cast<T*>(Allocate(sizeof(T),AlignOf<T>::Alignment));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Deallocate(void *Ptr) {}
|
void Deallocate(void */*Ptr*/) {}
|
||||||
|
|
||||||
void PrintStats() const;
|
void PrintStats() const;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user