Rename HandleTargetFeatures->handleTargetFeatures to match
everything else in the class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192851 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/Basic/TargetInfo.h b/include/clang/Basic/TargetInfo.h
index bda6af3..047872d 100644
--- a/include/clang/Basic/TargetInfo.h
+++ b/include/clang/Basic/TargetInfo.h
@@ -713,7 +713,7 @@
/// passed onwards to the backend.
///
/// \return False on error.
- virtual bool HandleTargetFeatures(std::vector<std::string> &Features,
+ virtual bool handleTargetFeatures(std::vector<std::string> &Features,
DiagnosticsEngine &Diags) {
return true;
}
@@ -817,7 +817,7 @@
virtual void getGCCRegAliases(const GCCRegAlias *&Aliases,
unsigned &NumAliases) const = 0;
virtual void getGCCAddlRegNames(const AddlRegName *&Addl,
- unsigned &NumAddl) const {
+ unsigned &NumAddl) const {
Addl = 0;
NumAddl = 0;
}
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp
index 8037eba..a17bb03 100644
--- a/lib/Basic/Targets.cpp
+++ b/lib/Basic/Targets.cpp
@@ -760,7 +760,7 @@
virtual void getDefaultFeatures(llvm::StringMap<bool> &Features) const;
- virtual bool HandleTargetFeatures(std::vector<std::string> &Features,
+ virtual bool handleTargetFeatures(std::vector<std::string> &Features,
DiagnosticsEngine &Diags);
virtual bool hasFeature(StringRef Feature) const;
@@ -883,9 +883,9 @@
#include "clang/Basic/BuiltinsPPC.def"
};
- /// HandleTargetFeatures - Perform initialization based on the user
+ /// handleTargetFeatures - Perform initialization based on the user
/// configured set of features.
-bool PPCTargetInfo::HandleTargetFeatures(std::vector<std::string> &Features,
+bool PPCTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
DiagnosticsEngine &Diags) {
// Remember the maximum enabled sselevel.
for (unsigned i = 0, e = Features.size(); i !=e; ++i) {
@@ -1842,7 +1842,7 @@
StringRef Name, bool Enabled);
virtual void getDefaultFeatures(llvm::StringMap<bool> &Features) const;
virtual bool hasFeature(StringRef Feature) const;
- virtual bool HandleTargetFeatures(std::vector<std::string> &Features,
+ virtual bool handleTargetFeatures(std::vector<std::string> &Features,
DiagnosticsEngine &Diags);
virtual const char* getABI() const {
if (getTriple().getArch() == llvm::Triple::x86_64 && SSELevel >= AVX)
@@ -2362,9 +2362,9 @@
}
}
-/// HandleTargetFeatures - Perform initialization based on the user
+/// handleTargetFeatures - Perform initialization based on the user
/// configured set of features.
-bool X86TargetInfo::HandleTargetFeatures(std::vector<std::string> &Features,
+bool X86TargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
DiagnosticsEngine &Diags) {
// Remember the maximum enabled sselevel.
for (unsigned i = 0, e = Features.size(); i !=e; ++i) {
@@ -3465,7 +3465,7 @@
return Feature == "aarch64" || (Feature == "neon" && FPU == NeonMode);
}
- virtual bool HandleTargetFeatures(std::vector<std::string> &Features,
+ virtual bool handleTargetFeatures(std::vector<std::string> &Features,
DiagnosticsEngine &Diags) {
FPU = FPUMode;
for (unsigned i = 0, e = Features.size(); i != e; ++i) {
@@ -3766,7 +3766,7 @@
}
}
- virtual bool HandleTargetFeatures(std::vector<std::string> &Features,
+ virtual bool handleTargetFeatures(std::vector<std::string> &Features,
DiagnosticsEngine &Diags) {
FPU = 0;
SoftFloat = SoftFloatABI = false;
@@ -4300,7 +4300,7 @@
public:
SparcTargetInfo(const llvm::Triple &Triple) : TargetInfo(Triple) {}
- virtual bool HandleTargetFeatures(std::vector<std::string> &Features,
+ virtual bool handleTargetFeatures(std::vector<std::string> &Features,
DiagnosticsEngine &Diags) {
SoftFloat = false;
for (unsigned i = 0, e = Features.size(); i != e; ++i)
@@ -4879,7 +4879,7 @@
return "";
}
- virtual bool HandleTargetFeatures(std::vector<std::string> &Features,
+ virtual bool handleTargetFeatures(std::vector<std::string> &Features,
DiagnosticsEngine &Diags) {
IsMips16 = false;
IsMicromips = false;
@@ -5767,7 +5767,7 @@
for (llvm::StringMap<bool>::const_iterator it = Features.begin(),
ie = Features.end(); it != ie; ++it)
Opts->Features.push_back((it->second ? "+" : "-") + it->first().str());
- if (!Target->HandleTargetFeatures(Opts->Features, Diags))
+ if (!Target->handleTargetFeatures(Opts->Features, Diags))
return 0;
return Target.take();