From 3d11cedeb5ed610dbfb0da733d65d8e95ed217da Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 16 Oct 2013 21:26:26 +0000 Subject: [PATCH] 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 --- include/clang/Basic/TargetInfo.h | 4 ++-- lib/Basic/Targets.cpp | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/include/clang/Basic/TargetInfo.h b/include/clang/Basic/TargetInfo.h index bda6af374a..047872dd40 100644 --- a/include/clang/Basic/TargetInfo.h +++ b/include/clang/Basic/TargetInfo.h @@ -713,7 +713,7 @@ public: /// passed onwards to the backend. /// /// \return False on error. - virtual bool HandleTargetFeatures(std::vector &Features, + virtual bool handleTargetFeatures(std::vector &Features, DiagnosticsEngine &Diags) { return true; } @@ -817,7 +817,7 @@ protected: 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 8037ebad86..a17bb03c86 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -760,7 +760,7 @@ public: virtual void getDefaultFeatures(llvm::StringMap &Features) const; - virtual bool HandleTargetFeatures(std::vector &Features, + virtual bool handleTargetFeatures(std::vector &Features, DiagnosticsEngine &Diags); virtual bool hasFeature(StringRef Feature) const; @@ -883,9 +883,9 @@ const Builtin::Info PPCTargetInfo::BuiltinInfo[] = { #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 &Features, +bool PPCTargetInfo::handleTargetFeatures(std::vector &Features, DiagnosticsEngine &Diags) { // Remember the maximum enabled sselevel. for (unsigned i = 0, e = Features.size(); i !=e; ++i) { @@ -1842,7 +1842,7 @@ public: StringRef Name, bool Enabled); virtual void getDefaultFeatures(llvm::StringMap &Features) const; virtual bool hasFeature(StringRef Feature) const; - virtual bool HandleTargetFeatures(std::vector &Features, + virtual bool handleTargetFeatures(std::vector &Features, DiagnosticsEngine &Diags); virtual const char* getABI() const { if (getTriple().getArch() == llvm::Triple::x86_64 && SSELevel >= AVX) @@ -2362,9 +2362,9 @@ void X86TargetInfo::setFeatureEnabledImpl(llvm::StringMap &Features, } } -/// HandleTargetFeatures - Perform initialization based on the user +/// handleTargetFeatures - Perform initialization based on the user /// configured set of features. -bool X86TargetInfo::HandleTargetFeatures(std::vector &Features, +bool X86TargetInfo::handleTargetFeatures(std::vector &Features, DiagnosticsEngine &Diags) { // Remember the maximum enabled sselevel. for (unsigned i = 0, e = Features.size(); i !=e; ++i) { @@ -3465,7 +3465,7 @@ public: return Feature == "aarch64" || (Feature == "neon" && FPU == NeonMode); } - virtual bool HandleTargetFeatures(std::vector &Features, + virtual bool handleTargetFeatures(std::vector &Features, DiagnosticsEngine &Diags) { FPU = FPUMode; for (unsigned i = 0, e = Features.size(); i != e; ++i) { @@ -3766,7 +3766,7 @@ public: } } - virtual bool HandleTargetFeatures(std::vector &Features, + virtual bool handleTargetFeatures(std::vector &Features, DiagnosticsEngine &Diags) { FPU = 0; SoftFloat = SoftFloatABI = false; @@ -4300,7 +4300,7 @@ class SparcTargetInfo : public TargetInfo { public: SparcTargetInfo(const llvm::Triple &Triple) : TargetInfo(Triple) {} - virtual bool HandleTargetFeatures(std::vector &Features, + virtual bool handleTargetFeatures(std::vector &Features, DiagnosticsEngine &Diags) { SoftFloat = false; for (unsigned i = 0, e = Features.size(); i != e; ++i) @@ -4879,7 +4879,7 @@ public: return ""; } - virtual bool HandleTargetFeatures(std::vector &Features, + virtual bool handleTargetFeatures(std::vector &Features, DiagnosticsEngine &Diags) { IsMips16 = false; IsMicromips = false; @@ -5767,7 +5767,7 @@ TargetInfo *TargetInfo::CreateTargetInfo(DiagnosticsEngine &Diags, for (llvm::StringMap::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(); -- 2.40.0