diff options
author | Duncan Sands <baldrick@free.fr> | 2013-06-10 12:09:30 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2013-06-10 12:09:30 +0000 |
commit | 48d5e750a8189c55087333d2bbc5dd0e1e07ddfa (patch) | |
tree | 868730f2478a8f1523817776b40dfe3c4238910a /include/llvm/Support | |
parent | 366d94e16cceff0375c05bda540a8cf44a281ddf (diff) | |
download | external_llvm-48d5e750a8189c55087333d2bbc5dd0e1e07ddfa.zip external_llvm-48d5e750a8189c55087333d2bbc5dd0e1e07ddfa.tar.gz external_llvm-48d5e750a8189c55087333d2bbc5dd0e1e07ddfa.tar.bz2 |
Avoid warnings about unused parameters that tend to come up a lot when
building outside projects with a different compiler than that used to build
LLVM itself (eg switching between gcc and clang).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183650 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/GetElementPtrTypeIterator.h | 2 | ||||
-rw-r--r-- | include/llvm/Support/MathExtras.h | 4 | ||||
-rw-r--r-- | include/llvm/Support/TargetRegistry.h | 21 |
3 files changed, 14 insertions, 13 deletions
diff --git a/include/llvm/Support/GetElementPtrTypeIterator.h b/include/llvm/Support/GetElementPtrTypeIterator.h index 5a90553..aacb531 100644 --- a/include/llvm/Support/GetElementPtrTypeIterator.h +++ b/include/llvm/Support/GetElementPtrTypeIterator.h @@ -105,7 +105,7 @@ namespace llvm { template<typename T> inline generic_gep_type_iterator<const T *> - gep_type_end(Type *Op0, ArrayRef<T> A) { + gep_type_end(Type * /*Op0*/, ArrayRef<T> A) { return generic_gep_type_iterator<const T *>::end(A.end()); } } // end namespace llvm diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h index be76f32..a65bfbc 100644 --- a/include/llvm/Support/MathExtras.h +++ b/include/llvm/Support/MathExtras.h @@ -45,7 +45,7 @@ enum ZeroBehavior { template <typename T> typename enable_if_c<std::numeric_limits<T>::is_integer && !std::numeric_limits<T>::is_signed, std::size_t>::type -countTrailingZeros(T Val, ZeroBehavior ZB = ZB_Width) { +countTrailingZeros(T Val, ZeroBehavior /*ZB*/ = ZB_Width) { if (!Val) return std::numeric_limits<T>::digits; if (Val & 0x1) @@ -114,7 +114,7 @@ inline std::size_t countTrailingZeros<uint64_t>(uint64_t Val, ZeroBehavior ZB) { template <typename T> typename enable_if_c<std::numeric_limits<T>::is_integer && !std::numeric_limits<T>::is_signed, std::size_t>::type -countLeadingZeros(T Val, ZeroBehavior ZB = ZB_Width) { +countLeadingZeros(T Val, ZeroBehavior /*ZB*/ = ZB_Width) { if (!Val) return std::numeric_limits<T>::digits; diff --git a/include/llvm/Support/TargetRegistry.h b/include/llvm/Support/TargetRegistry.h index c9d4373..109b3a2 100644 --- a/include/llvm/Support/TargetRegistry.h +++ b/include/llvm/Support/TargetRegistry.h @@ -891,7 +891,7 @@ namespace llvm { TargetRegistry::RegisterMCAsmInfo(T, &Allocator); } private: - static MCAsmInfo *Allocator(const MCRegisterInfo &MRI, StringRef TT) { + static MCAsmInfo *Allocator(const MCRegisterInfo &/*MRI*/, StringRef TT) { return new MCAsmInfoImpl(TT); } @@ -925,8 +925,9 @@ namespace llvm { TargetRegistry::RegisterMCCodeGenInfo(T, &Allocator); } private: - static MCCodeGenInfo *Allocator(StringRef TT, Reloc::Model RM, - CodeModel::Model CM, CodeGenOpt::Level OL) { + static MCCodeGenInfo *Allocator(StringRef /*TT*/, Reloc::Model /*RM*/, + CodeModel::Model /*CM*/, + CodeGenOpt::Level /*OL*/) { return new MCCodeGenInfoImpl(); } }; @@ -1025,7 +1026,7 @@ namespace llvm { TargetRegistry::RegisterMCRegInfo(T, &Allocator); } private: - static MCRegisterInfo *Allocator(StringRef TT) { + static MCRegisterInfo *Allocator(StringRef /*TT*/) { return new MCRegisterInfoImpl(); } }; @@ -1058,8 +1059,8 @@ namespace llvm { TargetRegistry::RegisterMCSubtargetInfo(T, &Allocator); } private: - static MCSubtargetInfo *Allocator(StringRef TT, StringRef CPU, - StringRef FS) { + static MCSubtargetInfo *Allocator(StringRef /*TT*/, StringRef /*CPU*/, + StringRef /*FS*/) { return new MCSubtargetInfoImpl(); } }; @@ -1178,10 +1179,10 @@ namespace llvm { } private: - static MCCodeEmitter *Allocator(const MCInstrInfo &II, - const MCRegisterInfo &MRI, - const MCSubtargetInfo &STI, - MCContext &Ctx) { + static MCCodeEmitter *Allocator(const MCInstrInfo &/*II*/, + const MCRegisterInfo &/*MRI*/, + const MCSubtargetInfo &/*STI*/, + MCContext &/*Ctx*/) { return new MCCodeEmitterImpl(); } }; |