diff options
author | Chris Lattner <sabre@nondot.org> | 2001-07-20 19:14:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-07-20 19:14:01 +0000 |
commit | e3ad3575b0ab0852f3a52f5a5f0cba3d45f05b43 (patch) | |
tree | 8d3923afe8957d79e60bc810b992fe5a6b42aa15 /include/llvm/Assembly | |
parent | 2ce0cbbbe1d53448ddbdaaedf0da28f68dd92ea0 (diff) | |
download | external_llvm-e3ad3575b0ab0852f3a52f5a5f0cba3d45f05b43.zip external_llvm-e3ad3575b0ab0852f3a52f5a5f0cba3d45f05b43.tar.gz external_llvm-e3ad3575b0ab0852f3a52f5a5f0cba3d45f05b43.tar.bz2 |
New function: WriteAsOperand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Assembly')
-rw-r--r-- | include/llvm/Assembly/Writer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Assembly/Writer.h b/include/llvm/Assembly/Writer.h index da247f6..0fbb695 100644 --- a/include/llvm/Assembly/Writer.h +++ b/include/llvm/Assembly/Writer.h @@ -23,6 +23,7 @@ class Module; class Method; class BasicBlock; class Instruction; +class SlotCalculator; // The only interface defined by this file... convert the internal // representation of an object into an ascii bytestream that the parser can @@ -34,6 +35,14 @@ void WriteToAssembly(const BasicBlock *BB, ostream &o); void WriteToAssembly(const Instruction *In, ostream &o); void WriteToAssembly(const ConstPoolVal *V, ostream &o); +// WriteAsOperand - Write the name of the specified value out to the specified +// ostream. This can be useful when you just want to print int %reg126, not the +// whole instruction that generated it. +// +ostream &WriteAsOperand(ostream &o, const Value *V, bool PrintType = true, + bool PrintName = true, SlotCalculator *Table = 0); + + // WriteToVCG - Dump the specified structure to a VCG file. If method is // dumped, then the file named is created. If a module is to be written, a // family of files with a common base name is created, with a method name |