diff options
author | Eric Christopher <echristo@gmail.com> | 2015-05-12 00:04:20 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-05-12 00:04:20 +0000 |
commit | 5eaf3815c07c0ac2acd4bd89a28cd9296619fe9b (patch) | |
tree | 53c93d946ffb3b0e0771eea84d741182e2bbb641 /clang/lib/Basic/Targets.cpp | |
parent | 3d705e37c322cae86e5f5fd1cf7fd198d387ddb2 (diff) | |
download | bcm5719-llvm-5eaf3815c07c0ac2acd4bd89a28cd9296619fe9b.tar.gz bcm5719-llvm-5eaf3815c07c0ac2acd4bd89a28cd9296619fe9b.zip |
Update initialization of a class variable and comment.
llvm-svn: 237071
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r-- | clang/lib/Basic/Targets.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 9c09942ba13..fe37caa83bd 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -5349,11 +5349,13 @@ class SparcTargetInfo : public TargetInfo { static const char * const GCCRegNames[]; bool SoftFloat; public: - SparcTargetInfo(const llvm::Triple &Triple) : TargetInfo(Triple) {} + SparcTargetInfo(const llvm::Triple &Triple) + : TargetInfo(Triple), SoftFloat(false) {} bool handleTargetFeatures(std::vector<std::string> &Features, DiagnosticsEngine &Diags) override { - SoftFloat = false; + // The backend doesn't actually handle soft float yet, but in case someone + // is using the support for the front end continue to support it. auto Feature = std::find(Features.begin(), Features.end(), "+soft-float"); if (Feature != Features.end()) { SoftFloat = true; |