diff options
author | David Greene <greened@obbligato.org> | 2009-07-09 23:56:35 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2009-07-09 23:56:35 +0000 |
commit | cd94645665005032a6371328e9069a2cb62a69ca (patch) | |
tree | 5579d413484ceea4de32af65e7e2a237eedc8da0 /llvm/lib/CodeGen | |
parent | 9ce44e25211aabcdbfe61fb4c4db81bebce2376f (diff) | |
download | bcm5719-llvm-cd94645665005032a6371328e9069a2cb62a69ca.tar.gz bcm5719-llvm-cd94645665005032a6371328e9069a2cb62a69ca.zip |
Redesign this to avoid standard stream classes. This stream class
provides pretty -printing of comments and other such things in asm
files.
llvm-svn: 75202
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmStream.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmStream.cpp b/llvm/lib/CodeGen/AsmStream.cpp new file mode 100644 index 00000000000..4e9c56140d0 --- /dev/null +++ b/llvm/lib/CodeGen/AsmStream.cpp @@ -0,0 +1,21 @@ +//===-- 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 { + raw_asm_fd_ostream asmouts(STDOUT_FILENO, false); + raw_asm_fd_ostream asmerrs(STDERR_FILENO, false); +} |