Remove unused argument from AddFeature.
authorEric Christopher <echristo@gmail.com>
Mon, 5 May 2014 21:40:44 +0000 (21:40 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 5 May 2014 21:40:44 +0000 (21:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208002 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/SubtargetFeature.h
lib/MC/SubtargetFeature.cpp

index d0735ccd9fa3179414314398457923a5d159ba85..d9bea4b917b5d47bed9a536472c34656f7e59945 100644 (file)
@@ -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.
index 2ce7d1bf744cdaf7d422121aa751908db778dc62..ca2ad7a8135e346d3714b3b2c8fb99672035929f 100644 (file)
@@ -109,12 +109,11 @@ static std::string Join(const std::vector<std::string> &V) {
 }
 
 /// 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));
   }
 }