diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-09 18:41:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-09 18:41:57 +0000 |
commit | 55b97265967e0aabcfc4e2fd2dcc3c67253fecdc (patch) | |
tree | a88b46c9be091bd3f8afb583ad3866141453bb14 /llvm/lib/CodeGen | |
parent | 29fd313e9e0ca6498c1a7c05747ee8291e167126 (diff) | |
download | bcm5719-llvm-55b97265967e0aabcfc4e2fd2dcc3c67253fecdc.tar.gz bcm5719-llvm-55b97265967e0aabcfc4e2fd2dcc3c67253fecdc.zip |
back out r75156 for now.
llvm-svn: 75160
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmStream.cpp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/llvm/lib/CodeGen/AsmStream.cpp b/llvm/lib/CodeGen/AsmStream.cpp deleted file mode 100644 index 8a9ded7ee5d..00000000000 --- a/llvm/lib/CodeGen/AsmStream.cpp +++ /dev/null @@ -1,47 +0,0 @@ -//===-- llvm/CodeGen/AsmStream.cpp - AsmStream Framework --------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file was developed by the LLVM research group and is distributed under -// the University of Illinois Open Source License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file contains instantiations of "standard" AsmOStreams. -// -//===----------------------------------------------------------------------===// - -#include "llvm/CodeGen/AsmStream.h" - -#include <unistd.h> - -namespace llvm { - AsmStreambuf asmoutbuf(STDOUT_FILENO); - AsmStreambuf asmerrbuf(STDERR_FILENO); - - //===----------------------------------------------------------------------===// - // raw_asm_ostream - //===----------------------------------------------------------------------===// - - raw_asm_ostream::~raw_asm_ostream() { - flush(); - } - - /// flush_impl - The is the piece of the class that is implemented by - /// subclasses. This outputs the currently buffered data and resets the - /// buffer to empty. - void raw_asm_ostream::flush_impl() { - if (OutBufCur-OutBufStart) - OS.write(OutBufStart, OutBufCur-OutBufStart); - - HandleFlush(); - } - - namespace { - AsmOStream AsmOut(&asmoutbuf); - AsmOStream AsmErr(&asmerrbuf); - } - - raw_asm_ostream asmout(AsmOut); - raw_asm_ostream asmerr(AsmErr); -} |