summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-03 01:02:24 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-03 01:02:24 +0000
commitf72c0d6b19b4b28915b4431ea7a59b4ff8ec6df0 (patch)
tree269b02718266e17f8f819ed9a663082076d59bd9
parent6eecd56efcd7ef57f6306e37b7c89d75954274c5 (diff)
downloadbcm5719-llvm-f72c0d6b19b4b28915b4431ea7a59b4ff8ec6df0.tar.gz
bcm5719-llvm-f72c0d6b19b4b28915b4431ea7a59b4ff8ec6df0.zip
Fix some comments referring to std::cerr.
llvm-svn: 77931
-rw-r--r--llvm/include/llvm/ADT/Trie.h4
-rw-r--r--llvm/include/llvm/CodeGen/MachineFrameInfo.h2
-rw-r--r--llvm/include/llvm/CodeGen/MachineJumpTableInfo.h2
-rw-r--r--llvm/include/llvm/CodeGen/Passes.h2
-rw-r--r--llvm/include/llvm/Linker.h10
-rw-r--r--llvm/include/llvm/Pass.h2
-rw-r--r--llvm/include/llvm/Support/CommandLine.h2
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp4
8 files changed, 14 insertions, 14 deletions
diff --git a/llvm/include/llvm/ADT/Trie.h b/llvm/include/llvm/ADT/Trie.h
index ed94f9de2d1..cf92862c20d 100644
--- a/llvm/include/llvm/ADT/Trie.h
+++ b/llvm/include/llvm/ADT/Trie.h
@@ -118,12 +118,12 @@ public:
#if 0
inline void dump() {
- std::cerr << "Node: " << this << "\n"
+ llvm::cerr << "Node: " << this << "\n"
<< "Label: " << Label << "\n"
<< "Children:\n";
for (iterator I = Children.begin(), E = Children.end(); I != E; ++I)
- std::cerr << (*I)->Label << "\n";
+ llvm::cerr << (*I)->Label << "\n";
}
#endif
diff --git a/llvm/include/llvm/CodeGen/MachineFrameInfo.h b/llvm/include/llvm/CodeGen/MachineFrameInfo.h
index 4c981f7caf0..83f7def0dd9 100644
--- a/llvm/include/llvm/CodeGen/MachineFrameInfo.h
+++ b/llvm/include/llvm/CodeGen/MachineFrameInfo.h
@@ -402,7 +402,7 @@ public:
///
void print(const MachineFunction &MF, std::ostream &OS) const;
- /// dump - Call print(MF, std::cerr) to be called from the debugger.
+ /// dump - Print the function to stderr.
void dump(const MachineFunction &MF) const;
};
diff --git a/llvm/include/llvm/CodeGen/MachineJumpTableInfo.h b/llvm/include/llvm/CodeGen/MachineJumpTableInfo.h
index 56e2e5499a7..3896691bcdb 100644
--- a/llvm/include/llvm/CodeGen/MachineJumpTableInfo.h
+++ b/llvm/include/llvm/CodeGen/MachineJumpTableInfo.h
@@ -82,7 +82,7 @@ public:
void print(std::ostream &OS) const;
void print(std::ostream *OS) const { if (OS) print(*OS); }
- /// dump - Call print(std::cerr) to be called from the debugger.
+ /// dump - Call to stderr.
///
void dump() const;
};
diff --git a/llvm/include/llvm/CodeGen/Passes.h b/llvm/include/llvm/CodeGen/Passes.h
index fa570b58559..7365c447962 100644
--- a/llvm/include/llvm/CodeGen/Passes.h
+++ b/llvm/include/llvm/CodeGen/Passes.h
@@ -35,7 +35,7 @@ namespace llvm {
FunctionPass *createUnreachableBlockEliminationPass();
/// MachineFunctionPrinter pass - This pass prints out the machine function to
- /// standard error, as a debugging tool.
+ /// the given stream, as a debugging tool.
FunctionPass *createMachineFunctionPrinterPass(std::ostream *OS,
const std::string &Banner ="");
diff --git a/llvm/include/llvm/Linker.h b/llvm/include/llvm/Linker.h
index ec3e17b5415..2f3d3740820 100644
--- a/llvm/include/llvm/Linker.h
+++ b/llvm/include/llvm/Linker.h
@@ -32,7 +32,7 @@ class LLVMContext;
/// The Linker can link Modules from memory, bitcode files, or bitcode
/// archives. It retains a set of search paths in which to find any libraries
/// presented to it. By default, the linker will generate error and warning
-/// messages to std::cerr but this capability can be turned off with the
+/// messages to stderr but this capability can be turned off with the
/// QuietWarnings and QuietErrors flags. It can also be instructed to verbosely
/// print out the linking actions it is taking with the Verbose flag.
/// @brief The LLVM Linker.
@@ -52,9 +52,9 @@ class Linker {
/// This enumeration is used to control various optional features of the
/// linker.
enum ControlFlags {
- Verbose = 1, ///< Print to std::cerr what steps the linker is taking
- QuietWarnings = 2, ///< Don't print warnings to std::cerr.
- QuietErrors = 4 ///< Don't print errors to std::cerr.
+ Verbose = 1, ///< Print to stderr what steps the linker is taking
+ QuietWarnings = 2, ///< Don't print warnings to stderr.
+ QuietErrors = 4 ///< Don't print errors to stderr.
};
/// @}
@@ -114,7 +114,7 @@ class Linker {
/// true, indicating an error occurred. At most one error is retained so
/// this function always returns the last error that occurred. Note that if
/// the Quiet control flag is not set, the error string will have already
- /// been printed to std::cerr.
+ /// been printed to stderr.
/// @brief Get the text of the last error that occurred.
const std::string &getLastError() const { return Error; }
diff --git a/llvm/include/llvm/Pass.h b/llvm/include/llvm/Pass.h
index 3043fc0db5a..b042756238d 100644
--- a/llvm/include/llvm/Pass.h
+++ b/llvm/include/llvm/Pass.h
@@ -106,7 +106,7 @@ public:
///
virtual void print(std::ostream &O, const Module *M) const;
void print(std::ostream *O, const Module *M) const { if (O) print(*O, M); }
- void dump() const; // dump - call print(std::cerr, 0);
+ void dump() const; // dump - Print to stderr.
/// Each pass is responsible for assigning a pass manager to itself.
/// PMS is the stack of available pass manager.
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h
index 61f9d80002a..de12f6fedb4 100644
--- a/llvm/include/llvm/Support/CommandLine.h
+++ b/llvm/include/llvm/Support/CommandLine.h
@@ -1366,7 +1366,7 @@ struct aliasopt {
// extrahelp - provide additional help at the end of the normal help
// output. All occurrences of cl::extrahelp will be accumulated and
-// printed to std::cerr at the end of the regular help, just before
+// printed to stderr at the end of the regular help, just before
// exit is called.
struct extrahelp {
const char * morehelp;
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 0461f4059ec..858f40362b0 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -62,8 +62,8 @@ namespace {
char Printer::ID = 0;
}
-/// Returns a newly-created MachineFunction Printer pass. The default output
-/// stream is std::cerr; the default banner is empty.
+/// Returns a newly-created MachineFunction Printer pass. The default banner is
+/// empty.
///
FunctionPass *llvm::createMachineFunctionPrinterPass(std::ostream *OS,
const std::string &Banner){
OpenPOWER on IntegriCloud