diff options
author | Bill Wendling <isanbard@gmail.com> | 2006-12-07 22:21:48 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2006-12-07 22:21:48 +0000 |
commit | f5da13367f88f06e3b585dc2263ab6e9ca6c4bf8 (patch) | |
tree | 3cf9a9612ba0a90fee9ec668819ae5a69a7bada1 /lib/Target/SubtargetFeature.cpp | |
parent | 6e49d8b4bf7b5911dc953551672161b8f9a7418f (diff) | |
download | external_llvm-f5da13367f88f06e3b585dc2263ab6e9ca6c4bf8.zip external_llvm-f5da13367f88f06e3b585dc2263ab6e9ca6c4bf8.tar.gz external_llvm-f5da13367f88f06e3b585dc2263ab6e9ca6c4bf8.tar.bz2 |
What should be the last unnecessary <iostream>s in the library.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32333 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SubtargetFeature.cpp')
-rw-r--r-- | lib/Target/SubtargetFeature.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/lib/Target/SubtargetFeature.cpp b/lib/Target/SubtargetFeature.cpp index de48f4f..8062123 100644 --- a/lib/Target/SubtargetFeature.cpp +++ b/lib/Target/SubtargetFeature.cpp @@ -13,10 +13,10 @@ #include "llvm/Target/SubtargetFeature.h" #include "llvm/ADT/StringExtras.h" +#include "llvm/Support/Streams.h" #include <algorithm> #include <cassert> #include <cctype> -#include <iostream> using namespace llvm; //===----------------------------------------------------------------------===// @@ -144,23 +144,23 @@ static void Help(const SubtargetFeatureKV *CPUTable, size_t CPUTableSize, unsigned MaxFeatLen = getLongestEntryLength(FeatTable, FeatTableSize); // Print the CPU table. - std::cerr << "Available CPUs for this target:\n\n"; + cerr << "Available CPUs for this target:\n\n"; for (size_t i = 0; i != CPUTableSize; i++) - std::cerr << " " << CPUTable[i].Key - << std::string(MaxCPULen - std::strlen(CPUTable[i].Key), ' ') - << " - " << CPUTable[i].Desc << ".\n"; - std::cerr << "\n"; + cerr << " " << CPUTable[i].Key + << std::string(MaxCPULen - std::strlen(CPUTable[i].Key), ' ') + << " - " << CPUTable[i].Desc << ".\n"; + cerr << "\n"; // Print the Feature table. - std::cerr << "Available features for this target:\n\n"; + cerr << "Available features for this target:\n\n"; for (size_t i = 0; i != FeatTableSize; i++) - std::cerr << " " << FeatTable[i].Key - << std::string(MaxFeatLen - std::strlen(FeatTable[i].Key), ' ') - << " - " << FeatTable[i].Desc << ".\n"; - std::cerr << "\n"; + cerr << " " << FeatTable[i].Key + << std::string(MaxFeatLen - std::strlen(FeatTable[i].Key), ' ') + << " - " << FeatTable[i].Desc << ".\n"; + cerr << "\n"; - std::cerr << "Use +feature to enable a feature, or -feature to disable it.\n" - << "For example, llc -mcpu=mycpu -mattr=+feature1,-feature2\n"; + cerr << "Use +feature to enable a feature, or -feature to disable it.\n" + << "For example, llc -mcpu=mycpu -mattr=+feature1,-feature2\n"; exit(1); } @@ -231,10 +231,10 @@ uint32_t SubtargetFeatures::getBits(const SubtargetFeatureKV *CPUTable, // Set base feature bits Bits = CPUEntry->Value; } else { - std::cerr << "'" << Features[0] - << "' is not a recognized processor for this target" - << " (ignoring processor)" - << "\n"; + cerr << "'" << Features[0] + << "' is not a recognized processor for this target" + << " (ignoring processor)" + << "\n"; } // Iterate through each feature for (size_t i = 1; i < Features.size(); i++) { @@ -253,10 +253,10 @@ uint32_t SubtargetFeatures::getBits(const SubtargetFeatureKV *CPUTable, if (isEnabled(Feature)) Bits |= FeatureEntry->Value; else Bits &= ~FeatureEntry->Value; } else { - std::cerr << "'" << Feature - << "' is not a recognized feature for this target" - << " (ignoring feature)" - << "\n"; + cerr << "'" << Feature + << "' is not a recognized feature for this target" + << " (ignoring feature)" + << "\n"; } } return Bits; @@ -278,10 +278,10 @@ void *SubtargetFeatures::getInfo(const SubtargetInfoKV *Table, if (Entry) { return Entry->Value; } else { - std::cerr << "'" << Features[0] - << "' is not a recognized processor for this target" - << " (ignoring processor)" - << "\n"; + cerr << "'" << Features[0] + << "' is not a recognized processor for this target" + << " (ignoring processor)" + << "\n"; return NULL; } } @@ -298,5 +298,5 @@ void SubtargetFeatures::print(std::ostream &OS) const { /// dump - Dump feature info. /// void SubtargetFeatures::dump() const { - print(std::cerr); + print(*cerr.stream()); } |