Remove unused argument from AddFeature.

llvm-svn: 208002
This commit is contained in:
Eric Christopher 2014-05-05 21:40:44 +00:00
parent aa1641e564
commit 6beaa8adb8
2 changed files with 3 additions and 4 deletions

View 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.

View 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));
}
}