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
This commit is contained in:
David Greene
2009-07-09 23:56:35 +00:00
parent 9b4b00ad43
commit e7800be8f0
2 changed files with 200 additions and 0 deletions

21
lib/CodeGen/AsmStream.cpp Normal file
View File

@@ -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);
}