Warnings patrol.
authorEric Christopher <echristo@apple.com>
Thu, 22 Jul 2010 21:51:30 +0000 (21:51 +0000)
committerEric Christopher <echristo@apple.com>
Thu, 22 Jul 2010 21:51:30 +0000 (21:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109174 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Module.h
include/llvm/Target/TargetMachine.h

index 45247ec31c5e8a059ff829c337343f9a3dd2ae34..b7880ca2cb762d2e4de1aca6eb1976390e462b4f 100644 (file)
@@ -71,8 +71,8 @@ template<> struct ilist_traits<NamedMDNode>
   NamedMDNode *provideInitialHead() const { return createSentinel(); }
   NamedMDNode *ensureHead(NamedMDNode*) const { return createSentinel(); }
   static void noteHead(NamedMDNode*, NamedMDNode*) {}
   NamedMDNode *provideInitialHead() const { return createSentinel(); }
   NamedMDNode *ensureHead(NamedMDNode*) const { return createSentinel(); }
   static void noteHead(NamedMDNode*, NamedMDNode*) {}
-  void addNodeToList(NamedMDNode *N) {}
-  void removeNodeFromList(NamedMDNode *N) {}
+  void addNodeToList(NamedMDNode *) {}
+  void removeNodeFromList(NamedMDNode *) {}
 private:
   mutable ilist_node<NamedMDNode> Sentinel;
 };
 private:
   mutable ilist_node<NamedMDNode> Sentinel;
 };
index 29e4f7c080182d656e007948ca53da74603be37c..2857efb53b926f9680345f3649351fd395dffaf9 100644 (file)
@@ -250,10 +250,10 @@ public:
   /// code is not supported. It fills the MCContext Ctx pointer which can be
   /// used to build custom MCStreamer.
   ///
   /// code is not supported. It fills the MCContext Ctx pointer which can be
   /// used to build custom MCStreamer.
   ///
-  virtual bool addPassesToEmitMC(PassManagerBase &PM,
-                                 MCContext *&Ctx,
-                                 CodeGenOpt::Level OptLevel,
-                                 bool DisableVerify = true) {
+  virtual bool addPassesToEmitMC(PassManagerBase &,
+                                 MCContext *&,
+                                 CodeGenOpt::Level,
+                                 bool = true) {
     return true;
   }
 };
     return true;
   }
 };