diff options
author | Viktor Kutuzov <vkutuzov@accesssoftek.com> | 2009-11-25 22:44:18 +0000 |
---|---|---|
committer | Viktor Kutuzov <vkutuzov@accesssoftek.com> | 2009-11-25 22:44:18 +0000 |
commit | 308f6630a3f413ab32763bc78ab7802df372751d (patch) | |
tree | a3d9619398e9cfbe6b6ceeb1fa850fc90a982326 /lib/Target/SubtargetFeature.cpp | |
parent | e7c9195706ce17b5016f74005ecab5523519deea (diff) |
Rollback changes r89516: Added two SubtargetFeatures::AddFeatures methods, which accept a comma-separated string or already parsed command line parameters as input, and some code re-factoring to use these new methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SubtargetFeature.cpp')
-rw-r--r-- | lib/Target/SubtargetFeature.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/Target/SubtargetFeature.cpp b/lib/Target/SubtargetFeature.cpp index 1085668a76..590574ef39 100644 --- a/lib/Target/SubtargetFeature.cpp +++ b/lib/Target/SubtargetFeature.cpp @@ -110,33 +110,6 @@ void SubtargetFeatures::AddFeature(const std::string &String, } } -/// Add a set of features from the comma-separated string. -void SubtargetFeatures::AddFeatures(const std::string &String) -{ - std::vector<std::string> _Features; - - Split(_Features, String); - // Nothing is specified. - if (_Features.size() == 0) - return; - - for (std::vector<std::string>::iterator it = _Features.begin(), - end = _Features.end(); it != end; ++it) { - // AddFeature will take care of feature string normalization. - AddFeature(*it); - } -} - -/// Add a set of features from the parsed command line parameters. -void SubtargetFeatures::AddFeatures(const cl::list<std::string> &List) -{ - for (cl::list<std::string>::const_iterator it = List.begin(), - end = List.end(); it != end; ++it) { - // AddFeature will take care of feature string normalization. - AddFeature(*it); - } -} - /// Find KV in array using binary search. template<typename T> const T *Find(const std::string &S, const T *A, size_t L) { // Make the lower bound element we're looking for |