mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
New function: WriteAsOperand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -23,6 +23,7 @@ class Module;
|
|||||||
class Method;
|
class Method;
|
||||||
class BasicBlock;
|
class BasicBlock;
|
||||||
class Instruction;
|
class Instruction;
|
||||||
|
class SlotCalculator;
|
||||||
|
|
||||||
// The only interface defined by this file... convert the internal
|
// The only interface defined by this file... convert the internal
|
||||||
// representation of an object into an ascii bytestream that the parser can
|
// 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 Instruction *In, ostream &o);
|
||||||
void WriteToAssembly(const ConstPoolVal *V, 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
|
// 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
|
// 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
|
// family of files with a common base name is created, with a method name
|
||||||
|
Reference in New Issue
Block a user