r192851 - Rename HandleTargetFeatures->handleTargetFeatures to match
Eric Christopher
echristo at gmail.com
Wed Oct 16 14:26:26 PDT 2013
Author: echristo
Date: Wed Oct 16 16:26:26 2013
New Revision: 192851
URL: http://llvm.org/viewvc/llvm-project?rev=192851&view=rev
Log:
Rename HandleTargetFeatures->handleTargetFeatures to match
everything else in the class.
Modified:
cfe/trunk/include/clang/Basic/TargetInfo.h
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/include/clang/Basic/TargetInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/TargetInfo.h?rev=192851&r1=192850&r2=192851&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/TargetInfo.h (original)
+++ cfe/trunk/include/clang/Basic/TargetInfo.h Wed Oct 16 16:26:26 2013
@@ -713,7 +713,7 @@ public:
/// 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 @@ 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;
}
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=192851&r1=192850&r2=192851&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Wed Oct 16 16:26:26 2013
@@ -760,7 +760,7 @@ public:
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 @@ const Builtin::Info PPCTargetInfo::Built
#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 @@ public:
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 @@ void X86TargetInfo::setFeatureEnabledImp
}
}
-/// 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 @@ public:
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 @@ public:
}
}
- 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 @@ class SparcTargetInfo : public TargetInf
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 @@ public:
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 @@ TargetInfo *TargetInfo::CreateTargetInfo
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();
More information about the cfe-commits
mailing list