mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 07:34:06 +00:00
Moved definition of llvm_ostream wrappers to the Streams.cpp file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31819 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
52883e7a9a
commit
ab41c3e6b7
@ -23,9 +23,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include <iostream>
|
||||
#include "llvm/Support/Debug.h"
|
||||
using namespace llvm;
|
||||
|
||||
bool llvm::DebugFlag; // DebugFlag - Exported boolean set by the -debug option
|
||||
@ -71,7 +70,7 @@ bool llvm::isCurrentDebugType(const char *DebugType) {
|
||||
//
|
||||
llvm_ostream llvm::getErrorOutputStream(const char *DebugType) {
|
||||
if (DebugFlag && isCurrentDebugType(DebugType))
|
||||
return llvm_ostream(std::cerr);
|
||||
return llvm_cerr;
|
||||
else
|
||||
return llvm_ostream();
|
||||
return llvm_null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user