aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmStream.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-07-09 23:56:35 +0000
committerDavid Greene <greened@obbligato.org>2009-07-09 23:56:35 +0000
commit7869cae7ecb3aca600aa30d83ebcaa1d0af6c6aa (patch)
tree5762a87960e048788be677224ca55ed1eb9c1f9b /lib/CodeGen/AsmStream.cpp
parentc675135c7e8c69bc61a95ebedd0741dc8354f649 (diff)
downloadexternal_llvm-7869cae7ecb3aca600aa30d83ebcaa1d0af6c6aa.zip
external_llvm-7869cae7ecb3aca600aa30d83ebcaa1d0af6c6aa.tar.gz
external_llvm-7869cae7ecb3aca600aa30d83ebcaa1d0af6c6aa.tar.bz2
Redesign this to avoid standard stream classes. This stream class
provides pretty -printing of comments and other such things in asm files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75202 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmStream.cpp')
-rw-r--r--lib/CodeGen/AsmStream.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmStream.cpp b/lib/CodeGen/AsmStream.cpp
new file mode 100644
index 0000000..4e9c561
--- /dev/null
+++ b/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);
+}