[llvm-branch-commits] [llvm-branch] r84151 - in /llvm/branches/Apple/Leela/include/llvm: ADT/DenseMapInfo.h CodeGen/ScheduleDAG.h ExecutionEngine/JITMemoryManager.h Metadata.h Operator.h Pass.h Support/CommandLine.h Support/raw_ostream.h

Bob Wilson bob.wilson at apple.com
Wed Oct 14 16:15:10 PDT 2009


Author: bwilson
Date: Wed Oct 14 18:15:08 2009
New Revision: 84151

URL: http://llvm.org/viewvc/llvm-project?rev=84151&view=rev
Log:
$ svn merge -c 84130 https://bwilson@llvm.org/svn/llvm-project/llvm/trunk
--- Merging r84130 into '.':
U    include/llvm/ExecutionEngine/JITMemoryManager.h
U    include/llvm/Metadata.h
U    include/llvm/ADT/DenseMapInfo.h
U    include/llvm/Operator.h
U    include/llvm/Pass.h
U    include/llvm/Support/CommandLine.h
U    include/llvm/Support/raw_ostream.h
U    include/llvm/CodeGen/ScheduleDAG.h
$ svn merge -c 84147 https://bwilson@llvm.org/svn/llvm-project/llvm/trunk
--- Merging r84147 into '.':
G    include/llvm/Support/raw_ostream.h
$ svn merge -c 84150 https://bwilson@llvm.org/svn/llvm-project/llvm/trunk
--- Merging r84150 into '.':
G    include/llvm/Support/raw_ostream.h

Modified:
    llvm/branches/Apple/Leela/include/llvm/ADT/DenseMapInfo.h
    llvm/branches/Apple/Leela/include/llvm/CodeGen/ScheduleDAG.h
    llvm/branches/Apple/Leela/include/llvm/ExecutionEngine/JITMemoryManager.h
    llvm/branches/Apple/Leela/include/llvm/Metadata.h
    llvm/branches/Apple/Leela/include/llvm/Operator.h
    llvm/branches/Apple/Leela/include/llvm/Pass.h
    llvm/branches/Apple/Leela/include/llvm/Support/CommandLine.h
    llvm/branches/Apple/Leela/include/llvm/Support/raw_ostream.h

Modified: llvm/branches/Apple/Leela/include/llvm/ADT/DenseMapInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela/include/llvm/ADT/DenseMapInfo.h?rev=84151&r1=84150&r2=84151&view=diff

==============================================================================
--- llvm/branches/Apple/Leela/include/llvm/ADT/DenseMapInfo.h (original)
+++ llvm/branches/Apple/Leela/include/llvm/ADT/DenseMapInfo.h Wed Oct 14 18:15:08 2009
@@ -89,7 +89,7 @@
   static inline unsigned long long getEmptyKey() { return ~0ULL; }
   static inline unsigned long long getTombstoneKey() { return ~0ULL - 1ULL; }
   static unsigned getHashValue(const unsigned long long& Val) {
-    return Val * 37ULL;
+    return (unsigned)Val * 37ULL;
   }
   static bool isPod() { return true; }
   static bool isEqual(const unsigned long long& LHS,

Modified: llvm/branches/Apple/Leela/include/llvm/CodeGen/ScheduleDAG.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela/include/llvm/CodeGen/ScheduleDAG.h?rev=84151&r1=84150&r2=84151&view=diff

==============================================================================
--- llvm/branches/Apple/Leela/include/llvm/CodeGen/ScheduleDAG.h (original)
+++ llvm/branches/Apple/Leela/include/llvm/CodeGen/ScheduleDAG.h Wed Oct 14 18:15:08 2009
@@ -500,8 +500,8 @@
     /// ComputeOperandLatency - Override dependence edge latency using
     /// operand use/def information
     ///
-    virtual void ComputeOperandLatency(SUnit *Def, SUnit *Use,
-                                       SDep& dep) const { };
+    virtual void ComputeOperandLatency(SUnit *, SUnit *,
+                                       SDep&) const { };
 
     /// Schedule - Order nodes according to selected style, filling
     /// in the Sequence member.

Modified: llvm/branches/Apple/Leela/include/llvm/ExecutionEngine/JITMemoryManager.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela/include/llvm/ExecutionEngine/JITMemoryManager.h?rev=84151&r1=84150&r2=84151&view=diff

==============================================================================
--- llvm/branches/Apple/Leela/include/llvm/ExecutionEngine/JITMemoryManager.h (original)
+++ llvm/branches/Apple/Leela/include/llvm/ExecutionEngine/JITMemoryManager.h Wed Oct 14 18:15:08 2009
@@ -149,7 +149,7 @@
   /// CheckInvariants - For testing only.  Return true if all internal
   /// invariants are preserved, or return false and set ErrorStr to a helpful
   /// error message.
-  virtual bool CheckInvariants(std::string &ErrorStr) {
+  virtual bool CheckInvariants(std::string &) {
     return true;
   }
 

Modified: llvm/branches/Apple/Leela/include/llvm/Metadata.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela/include/llvm/Metadata.h?rev=84151&r1=84150&r2=84151&view=diff

==============================================================================
--- llvm/branches/Apple/Leela/include/llvm/Metadata.h (original)
+++ llvm/branches/Apple/Leela/include/llvm/Metadata.h Wed Oct 14 18:15:08 2009
@@ -181,7 +181,7 @@
   /// duplicates
   void Profile(FoldingSetNodeID &ID) const;
 
-  virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U) {
+  virtual void replaceUsesOfWithOnConstant(Value *, Value *, Use *) {
     llvm_unreachable("This should never be called because MDNodes have no ops");
   }
 
@@ -291,7 +291,7 @@
     return false;
   }
 
-  virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U) {
+  virtual void replaceUsesOfWithOnConstant(Value *, Value *, Use *) {
     llvm_unreachable(
                 "This should never be called because NamedMDNodes have no ops");
   }
@@ -357,7 +357,7 @@
 
   /// ValueIsDeleted - This handler is used to update metadata store
   /// when a value is deleted.
-  void ValueIsDeleted(const Value *V) {}
+  void ValueIsDeleted(const Value *) {}
   void ValueIsDeleted(const Instruction *Inst) {
     removeMDs(Inst);
   }

Modified: llvm/branches/Apple/Leela/include/llvm/Operator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela/include/llvm/Operator.h?rev=84151&r1=84150&r2=84151&view=diff

==============================================================================
--- llvm/branches/Apple/Leela/include/llvm/Operator.h (original)
+++ llvm/branches/Apple/Leela/include/llvm/Operator.h Wed Oct 14 18:15:08 2009
@@ -57,8 +57,8 @@
   }
 
   static inline bool classof(const Operator *) { return true; }
-  static inline bool classof(const Instruction *I) { return true; }
-  static inline bool classof(const ConstantExpr *I) { return true; }
+  static inline bool classof(const Instruction *) { return true; }
+  static inline bool classof(const ConstantExpr *) { return true; }
   static inline bool classof(const Value *V) {
     return isa<Instruction>(V) || isa<ConstantExpr>(V);
   }

Modified: llvm/branches/Apple/Leela/include/llvm/Pass.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela/include/llvm/Pass.h?rev=84151&r1=84150&r2=84151&view=diff

==============================================================================
--- llvm/branches/Apple/Leela/include/llvm/Pass.h (original)
+++ llvm/branches/Apple/Leela/include/llvm/Pass.h Wed Oct 14 18:15:08 2009
@@ -276,7 +276,7 @@
   /// doInitialization - Virtual method overridden by subclasses to do
   /// any necessary per-module initialization.
   ///
-  virtual bool doInitialization(Module &M) { return false; }
+  virtual bool doInitialization(Module &) { return false; }
   
   /// runOnFunction - Virtual method overriden by subclasses to do the
   /// per-function processing of the pass.
@@ -328,7 +328,7 @@
   /// doInitialization - Virtual method overridden by subclasses to do
   /// any necessary per-module initialization.
   ///
-  virtual bool doInitialization(Module &M) { return false; }
+  virtual bool doInitialization(Module &) { return false; }
 
   /// doInitialization - Virtual method overridden by BasicBlockPass subclasses
   /// to do any necessary per-function initialization.

Modified: llvm/branches/Apple/Leela/include/llvm/Support/CommandLine.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela/include/llvm/Support/CommandLine.h?rev=84151&r1=84150&r2=84151&view=diff

==============================================================================
--- llvm/branches/Apple/Leela/include/llvm/Support/CommandLine.h (original)
+++ llvm/branches/Apple/Leela/include/llvm/Support/CommandLine.h Wed Oct 14 18:15:08 2009
@@ -660,7 +660,7 @@
 class parser<std::string> : public basic_parser<std::string> {
 public:
   // parse - Return true on error.
-  bool parse(Option &, StringRef ArgName, StringRef Arg, std::string &Value) {
+  bool parse(Option &, StringRef, StringRef Arg, std::string &Value) {
     Value = Arg.str();
     return false;
   }
@@ -681,7 +681,7 @@
 class parser<char> : public basic_parser<char> {
 public:
   // parse - Return true on error.
-  bool parse(Option &, StringRef ArgName, StringRef Arg, char &Value) {
+  bool parse(Option &, StringRef, StringRef Arg, char &Value) {
     Value = Arg[0];
     return false;
   }

Modified: llvm/branches/Apple/Leela/include/llvm/Support/raw_ostream.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela/include/llvm/Support/raw_ostream.h?rev=84151&r1=84150&r2=84151&view=diff

==============================================================================
--- llvm/branches/Apple/Leela/include/llvm/Support/raw_ostream.h (original)
+++ llvm/branches/Apple/Leela/include/llvm/Support/raw_ostream.h Wed Oct 14 18:15:08 2009
@@ -51,7 +51,7 @@
   /// for a \see write_impl() call to handle the data which has been put into
   /// this buffer.
   char *OutBufStart, *OutBufEnd, *OutBufCur;
-  
+
   enum BufferKind {
     Unbuffered = 0,
     InternalBuffer,
@@ -211,7 +211,7 @@
     return *this;
   }
 
-  raw_ostream &operator<<(double N);  
+  raw_ostream &operator<<(double N);
 
   /// write_hex - Output \arg N in hexadecimal, without any prefix or padding.
   raw_ostream &write_hex(unsigned long long N);
@@ -224,8 +224,8 @@
 
   /// indent - Insert 'NumSpaces' spaces.
   raw_ostream &indent(unsigned NumSpaces);
-  
-  
+
+
   /// Changes the foreground color of text that will be output from this point
   /// forward.
   /// @param colors ANSI color to use, the special SAVEDCOLOR can be used to
@@ -233,8 +233,8 @@
   /// @param bold bold/brighter text, default false
   /// @param bg if true change the background, default: change foreground
   /// @returns itself so it can be used within << invocations
-  virtual raw_ostream &changeColor(enum Colors colors, bool bold=false,
-                                   bool  bg=false) { return *this; }
+  virtual raw_ostream &changeColor(enum Colors, bool = false,
+				   bool = false) { return *this; }
 
   /// Resets the colors to terminal defaults. Call this when you are done
   /// outputting colored text, or before program exit.
@@ -253,7 +253,7 @@
   /// write_impl - The is the piece of the class that is implemented
   /// by subclasses.  This writes the \args Size bytes starting at
   /// \arg Ptr to the underlying stream.
-  /// 
+  ///
   /// This function is guaranteed to only be called at a point at which it is
   /// safe for the subclass to install a new buffer via SetBuffer.
   ///
@@ -331,7 +331,7 @@
   virtual size_t preferred_buffer_size();
 
 public:
-  
+
   enum {
     /// F_Excl - When opening a file, this flag makes raw_fd_ostream
     /// report an error if the file already exists.
@@ -346,7 +346,7 @@
     /// make this distinction.
     F_Binary = 4
   };
-  
+
   /// raw_fd_ostream - Open the specified file for writing. If an error occurs,
   /// information about the error is put into ErrorInfo, and the stream should
   /// be immediately destroyed; the string will be empty if no error occurred.
@@ -359,10 +359,10 @@
 
   /// raw_fd_ostream ctor - FD is the file descriptor that this writes to.  If
   /// ShouldClose is true, this closes the file when the stream is destroyed.
-  raw_fd_ostream(int fd, bool shouldClose, 
-                 bool unbuffered=false) : raw_ostream(unbuffered), FD(fd), 
+  raw_fd_ostream(int fd, bool shouldClose,
+                 bool unbuffered=false) : raw_ostream(unbuffered), FD(fd),
                                           ShouldClose(shouldClose) {}
-  
+
   ~raw_fd_ostream();
 
   /// close - Manually flush the stream and close the file.
@@ -465,7 +465,7 @@
 class raw_null_ostream : public raw_ostream {
   /// write_impl - See raw_ostream::write_impl.
   virtual void write_impl(const char *Ptr, size_t size);
-  
+
   /// current_pos - Return the current position within the stream, not
   /// counting the bytes currently in the buffer.
   virtual uint64_t current_pos();





More information about the llvm-branch-commits mailing list