[llvm-commits] [llvm] r88977 - in /llvm/trunk/include/llvm: ADT/StringRef.h CodeGen/AsmPrinter.h

Eric Christopher echristo at apple.com
Mon Nov 16 14:34:33 PST 2009


Author: echristo
Date: Mon Nov 16 16:34:32 2009
New Revision: 88977

URL: http://llvm.org/viewvc/llvm-project?rev=88977&view=rev
Log:
Fix unused variables warnings.

Modified:
    llvm/trunk/include/llvm/ADT/StringRef.h
    llvm/trunk/include/llvm/CodeGen/AsmPrinter.h

Modified: llvm/trunk/include/llvm/ADT/StringRef.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/StringRef.h?rev=88977&r1=88976&r2=88977&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/StringRef.h (original)
+++ llvm/trunk/include/llvm/ADT/StringRef.h Mon Nov 16 16:34:32 2009
@@ -198,7 +198,7 @@
 
     /// 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.

Modified: llvm/trunk/include/llvm/CodeGen/AsmPrinter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/AsmPrinter.h?rev=88977&r1=88976&r2=88977&view=diff

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/AsmPrinter.h (original)
+++ llvm/trunk/include/llvm/CodeGen/AsmPrinter.h Mon Nov 16 16:34:32 2009
@@ -180,11 +180,11 @@
 
     /// 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.





More information about the llvm-commits mailing list