[llvm-commits] CVS: llvm/lib/Target/SubtargetFeature.cpp
Bill Wendling
isanbard at gmail.com
Thu Dec 7 14:22:21 PST 2006
Changes in directory llvm/lib/Target:
SubtargetFeature.cpp updated: 1.10 -> 1.11
---
Log message:
What should be the last unnecessary <iostream>s in the library.
---
Diffs of the changes: (+26 -26)
SubtargetFeature.cpp | 52 +++++++++++++++++++++++++--------------------------
1 files changed, 26 insertions(+), 26 deletions(-)
Index: llvm/lib/Target/SubtargetFeature.cpp
diff -u llvm/lib/Target/SubtargetFeature.cpp:1.10 llvm/lib/Target/SubtargetFeature.cpp:1.11
--- llvm/lib/Target/SubtargetFeature.cpp:1.10 Fri Mar 24 04:00:56 2006
+++ llvm/lib/Target/SubtargetFeature.cpp Thu Dec 7 16:21:48 2006
@@ -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 @@
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 @@
// 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 @@
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 @@
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 @@
/// dump - Dump feature info.
///
void SubtargetFeatures::dump() const {
- print(std::cerr);
+ print(*cerr.stream());
}
More information about the llvm-commits
mailing list