From: Eric Christopher Date: Mon, 16 Nov 2009 22:34:32 +0000 (+0000) Subject: Fix unused variables warnings. X-Git-Tag: android-x86-6.0-r1~1003^2~12852 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=4c269e2feb230d4380c0b3cd72da517bd2222023;p=android-x86%2Fexternal-llvm.git Fix unused variables warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88977 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/StringRef.h b/include/llvm/ADT/StringRef.h index b6486e76763..ed651bf1a2b 100644 --- a/include/llvm/ADT/StringRef.h +++ b/include/llvm/ADT/StringRef.h @@ -198,7 +198,7 @@ namespace llvm { /// find_first_of - Find the first character in the string that is \arg C, /// or npos if not found. Same as find. - size_type find_first_of(char C, size_t From = 0) const { return find(C); } + size_type find_first_of(char C, size_t = 0) const { return find(C); } /// find_first_of - Find the first character in the string that is in \arg /// Chars, or npos if not found. diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 416f9120bbf..109ff74c1b6 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -180,11 +180,11 @@ namespace llvm { /// EmitStartOfAsmFile - This virtual method can be overridden by targets /// that want to emit something at the start of their file. - virtual void EmitStartOfAsmFile(Module &M) {} + virtual void EmitStartOfAsmFile(Module &) {} /// EmitEndOfAsmFile - This virtual method can be overridden by targets that /// want to emit something at the end of their file. - virtual void EmitEndOfAsmFile(Module &M) {} + virtual void EmitEndOfAsmFile(Module &) {} /// doFinalization - Shut down the asmprinter. If you override this in your /// pass, you must make sure to call it explicitly.