summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorViktor Kutuzov <vkutuzov@accesssoftek.com>2009-11-25 22:44:18 +0000
committerViktor Kutuzov <vkutuzov@accesssoftek.com>2009-11-25 22:44:18 +0000
commit8981b3abe51e6231b82a24624d56e401713d879e (patch)
treecb70db7cd1da2743261b87db58530c0d1554a8d2 /llvm/lib/Target
parenta3d6e62003727c280d9be4687576849c7e010b29 (diff)
downloadbcm5719-llvm-8981b3abe51e6231b82a24624d56e401713d879e.tar.gz
bcm5719-llvm-8981b3abe51e6231b82a24624d56e401713d879e.zip
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.
llvm-svn: 89893
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/SubtargetFeature.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/llvm/lib/Target/SubtargetFeature.cpp b/llvm/lib/Target/SubtargetFeature.cpp
index 1085668a762..590574ef398 100644
--- a/llvm/lib/Target/SubtargetFeature.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud