Move the cpu validating virtual method down to the feature routines
where it belongs. llvm-svn: 244342
This commit is contained in:
		
							parent
							
								
									3815c16bf8
								
							
						
					
					
						commit
						e173314d39
					
				| 
						 | 
					@ -636,9 +636,6 @@ public:
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Validate the contents of the __builtin_cpu_supports(const char*) argument.
 | 
					 | 
				
			||||||
  virtual bool validateCpuSupports(StringRef Name) const { return false; }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // validateOutputConstraint, validateInputConstraint - Checks that
 | 
					  // validateOutputConstraint, validateInputConstraint - Checks that
 | 
				
			||||||
  // a constraint is valid and provides information about it.
 | 
					  // a constraint is valid and provides information about it.
 | 
				
			||||||
  // FIXME: These should return a real error instead of just true/false.
 | 
					  // FIXME: These should return a real error instead of just true/false.
 | 
				
			||||||
| 
						 | 
					@ -817,6 +814,10 @@ public:
 | 
				
			||||||
  virtual bool hasFeature(StringRef Feature) const {
 | 
					  virtual bool hasFeature(StringRef Feature) const {
 | 
				
			||||||
    return false;
 | 
					    return false;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // \brief Validate the contents of the __builtin_cpu_supports(const char*)
 | 
				
			||||||
 | 
					  // argument.
 | 
				
			||||||
 | 
					  virtual bool validateCpuSupports(StringRef Name) const { return false; }
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  // \brief Returns maximal number of args passed in registers.
 | 
					  // \brief Returns maximal number of args passed in registers.
 | 
				
			||||||
  unsigned getRegParmMax() const {
 | 
					  unsigned getRegParmMax() const {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue