aboutsummaryrefslogtreecommitdiff
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
commite7800be8f08da88e9916020bb770e22c0d98625b (patch)
tree5762a87960e048788be677224ca55ed1eb9c1f9b /lib/CodeGen/AsmStream.cpp
parent9b4b00ad436daeac6f97f77e9b5a3cc67ada150c (diff)
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 0000000000..4e9c56140d
--- /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);
+}