llvm.org GIT mirror llvm / 41b5adf
Remove a bunch of unused arguments from functions, silencing a warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84130 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 10 years ago
8 changed file(s) with 14 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
8888 static inline unsigned long long getEmptyKey() { return ~0ULL; }
8989 static inline unsigned long long getTombstoneKey() { return ~0ULL - 1ULL; }
9090 static unsigned getHashValue(const unsigned long long& Val) {
91 return Val * 37ULL;
91 return (unsigned)Val * 37ULL;
9292 }
9393 static bool isPod() { return true; }
9494 static bool isEqual(const unsigned long long& LHS,
499499 /// ComputeOperandLatency - Override dependence edge latency using
500500 /// operand use/def information
501501 ///
502 virtual void ComputeOperandLatency(SUnit *Def, SUnit *Use,
503 SDep& dep) const { };
502 virtual void ComputeOperandLatency(SUnit *, SUnit *,
503 SDep&) const { };
504504
505505 /// Schedule - Order nodes according to selected style, filling
506506 /// in the Sequence member.
148148 /// CheckInvariants - For testing only. Return true if all internal
149149 /// invariants are preserved, or return false and set ErrorStr to a helpful
150150 /// error message.
151 virtual bool CheckInvariants(std::string &ErrorStr) {
151 virtual bool CheckInvariants(std::string &) {
152152 return true;
153153 }
154154
180180 /// duplicates
181181 void Profile(FoldingSetNodeID &ID) const;
182182
183 virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U) {
183 virtual void replaceUsesOfWithOnConstant(Value *, Value *, Use *) {
184184 llvm_unreachable("This should never be called because MDNodes have no ops");
185185 }
186186
290290 return false;
291291 }
292292
293 virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U) {
293 virtual void replaceUsesOfWithOnConstant(Value *, Value *, Use *) {
294294 llvm_unreachable(
295295 "This should never be called because NamedMDNodes have no ops");
296296 }
360360
361361 /// ValueIsDeleted - This handler is used to update metadata store
362362 /// when a value is deleted.
363 void ValueIsDeleted(const Value *V) {}
363 void ValueIsDeleted(const Value *) {}
364364 void ValueIsDeleted(const Instruction *Inst) {
365365 removeMDs(Inst);
366366 }
5656 }
5757
5858 static inline bool classof(const Operator *) { return true; }
59 static inline bool classof(const Instruction *I) { return true; }
60 static inline bool classof(const ConstantExpr *I) { return true; }
59 static inline bool classof(const Instruction *) { return true; }
60 static inline bool classof(const ConstantExpr *) { return true; }
6161 static inline bool classof(const Value *V) {
6262 return isa(V) || isa(V);
6363 }
275275 /// doInitialization - Virtual method overridden by subclasses to do
276276 /// any necessary per-module initialization.
277277 ///
278 virtual bool doInitialization(Module &M) { return false; }
278 virtual bool doInitialization(Module &) { return false; }
279279
280280 /// runOnFunction - Virtual method overriden by subclasses to do the
281281 /// per-function processing of the pass.
327327 /// doInitialization - Virtual method overridden by subclasses to do
328328 /// any necessary per-module initialization.
329329 ///
330 virtual bool doInitialization(Module &M) { return false; }
330 virtual bool doInitialization(Module &) { return false; }
331331
332332 /// doInitialization - Virtual method overridden by BasicBlockPass subclasses
333333 /// to do any necessary per-function initialization.
659659 class parser : public basic_parser {
660660 public:
661661 // parse - Return true on error.
662 bool parse(Option &, StringRef ArgName, StringRef Arg, std::string &Value) {
662 bool parse(Option &, StringRef, StringRef Arg, std::string &Value) {
663663 Value = Arg.str();
664664 return false;
665665 }
680680 class parser : public basic_parser {
681681 public:
682682 // parse - Return true on error.
683 bool parse(Option &, StringRef ArgName, StringRef Arg, char &Value) {
683 bool parse(Option &, StringRef, StringRef Arg, char &Value) {
684684 Value = Arg[0];
685685 return false;
686686 }
232232 /// @param bold bold/brighter text, default false
233233 /// @param bg if true change the background, default: change foreground
234234 /// @returns itself so it can be used within << invocations
235 virtual raw_ostream &changeColor(enum Colors colors, bool bold=false,
236 bool bg=false) { return *this; }
235 virtual raw_ostream &changeColor(enum Colors, bool, bool) { return *this; }
237236
238237 /// Resets the colors to terminal defaults. Call this when you are done
239238 /// outputting colored text, or before program exit.