[llvm] r208002 - Remove unused argument from AddFeature.
Eric Christopher
echristo at gmail.com
Mon May 5 14:40:44 PDT 2014
Author: echristo
Date: Mon May 5 16:40:44 2014
New Revision: 208002
URL: http://llvm.org/viewvc/llvm-project?rev=208002&view=rev
Log:
Remove unused argument from AddFeature.
Modified:
llvm/trunk/include/llvm/MC/SubtargetFeature.h
llvm/trunk/lib/MC/SubtargetFeature.cpp
Modified: llvm/trunk/include/llvm/MC/SubtargetFeature.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/SubtargetFeature.h?rev=208002&r1=208001&r2=208002&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/SubtargetFeature.h (original)
+++ llvm/trunk/include/llvm/MC/SubtargetFeature.h Mon May 5 16:40:44 2014
@@ -78,7 +78,7 @@ public:
std::string getString() const;
/// Adding Features.
- void AddFeature(const StringRef String, bool IsEnabled = true);
+ void AddFeature(const StringRef String);
/// ToggleFeature - Toggle a feature and returns the newly updated feature
/// bits.
Modified: llvm/trunk/lib/MC/SubtargetFeature.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/SubtargetFeature.cpp?rev=208002&r1=208001&r2=208002&view=diff
==============================================================================
--- llvm/trunk/lib/MC/SubtargetFeature.cpp (original)
+++ llvm/trunk/lib/MC/SubtargetFeature.cpp Mon May 5 16:40:44 2014
@@ -109,12 +109,11 @@ static std::string Join(const std::vecto
}
/// Adding features.
-void SubtargetFeatures::AddFeature(const StringRef String,
- bool IsEnabled) {
+void SubtargetFeatures::AddFeature(const StringRef String) {
// Don't add empty features
if (!String.empty()) {
// Convert to lowercase, prepend flag and add to vector
- Features.push_back(PrependFlag(String.lower(), IsEnabled));
+ Features.push_back(PrependFlag(String.lower(), true));
}
}
More information about the llvm-commits
mailing list