2006-02-05 05:50:24 +00:00
|
|
|
//===-- SparcAsmPrinter.cpp - Sparc LLVM assembly writer ------------------===//
|
2005-04-21 23:30:14 +00:00
|
|
|
//
|
2004-03-04 06:00:41 +00:00
|
|
|
// 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.
|
2005-04-21 23:30:14 +00:00
|
|
|
//
|
2004-03-04 06:00:41 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains a printer that converts from our internal representation
|
2006-02-05 05:50:24 +00:00
|
|
|
// of machine-dependent LLVM code to GAS-format SPARC assembly language.
|
2004-03-04 06:00:41 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2006-02-05 05:50:24 +00:00
|
|
|
#include "Sparc.h"
|
|
|
|
#include "SparcInstrInfo.h"
|
2004-03-04 06:00:41 +00:00
|
|
|
#include "llvm/Constants.h"
|
|
|
|
#include "llvm/DerivedTypes.h"
|
|
|
|
#include "llvm/Module.h"
|
|
|
|
#include "llvm/Assembly/Writer.h"
|
2005-12-17 07:04:29 +00:00
|
|
|
#include "llvm/CodeGen/AsmPrinter.h"
|
2004-03-04 06:00:41 +00:00
|
|
|
#include "llvm/CodeGen/MachineFunctionPass.h"
|
|
|
|
#include "llvm/CodeGen/MachineConstantPool.h"
|
|
|
|
#include "llvm/CodeGen/MachineInstr.h"
|
|
|
|
#include "llvm/Target/TargetMachine.h"
|
|
|
|
#include "llvm/Support/Mangler.h"
|
2004-09-02 02:37:43 +00:00
|
|
|
#include "llvm/ADT/Statistic.h"
|
|
|
|
#include "llvm/ADT/StringExtras.h"
|
|
|
|
#include "llvm/Support/CommandLine.h"
|
2005-08-17 20:04:34 +00:00
|
|
|
#include "llvm/Support/MathExtras.h"
|
2004-03-06 05:30:21 +00:00
|
|
|
#include <cctype>
|
2006-01-22 23:41:00 +00:00
|
|
|
#include <iostream>
|
2004-03-04 06:00:41 +00:00
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
namespace {
|
|
|
|
Statistic<> EmittedInsts("asm-printer", "Number of machine instrs printed");
|
|
|
|
|
2006-02-05 05:50:24 +00:00
|
|
|
struct SparcAsmPrinter : public AsmPrinter {
|
|
|
|
SparcAsmPrinter(std::ostream &O, TargetMachine &TM) : AsmPrinter(O, TM) {
|
2005-12-17 07:11:43 +00:00
|
|
|
Data16bitsDirective = "\t.half\t";
|
|
|
|
Data32bitsDirective = "\t.word\t";
|
2005-12-18 23:36:45 +00:00
|
|
|
Data64bitsDirective = 0; // .xword is only supported by V9.
|
2005-12-17 07:17:08 +00:00
|
|
|
ZeroDirective = 0; // no .zero or .space!
|
2005-12-18 23:35:05 +00:00
|
|
|
CommentString = "!";
|
|
|
|
ConstantPoolSection = "\t.section \".rodata\",#alloc\n";
|
2005-12-17 07:11:43 +00:00
|
|
|
}
|
2004-03-04 06:00:41 +00:00
|
|
|
|
|
|
|
/// We name each basic block in a Function with a unique number, so
|
|
|
|
/// that we can consistently refer to them later. This is cleared
|
|
|
|
/// at the beginning of each call to runOnMachineFunction().
|
|
|
|
///
|
|
|
|
typedef std::map<const Value *, unsigned> ValueMapTy;
|
|
|
|
ValueMapTy NumberForBB;
|
|
|
|
|
|
|
|
virtual const char *getPassName() const {
|
2006-02-05 05:50:24 +00:00
|
|
|
return "Sparc Assembly Printer";
|
2004-03-04 06:00:41 +00:00
|
|
|
}
|
|
|
|
|
2004-06-15 19:52:59 +00:00
|
|
|
void printOperand(const MachineInstr *MI, int opNum);
|
2006-02-10 07:35:42 +00:00
|
|
|
void printMemOperand(const MachineInstr *MI, int opNum,
|
|
|
|
const char *Modifier = 0);
|
2006-02-05 05:50:24 +00:00
|
|
|
void printCCOperand(const MachineInstr *MI, int opNum);
|
2006-01-31 06:49:09 +00:00
|
|
|
|
2005-12-16 06:34:17 +00:00
|
|
|
bool printInstruction(const MachineInstr *MI); // autogenerated.
|
2005-04-21 23:30:14 +00:00
|
|
|
bool runOnMachineFunction(MachineFunction &F);
|
2004-03-04 06:00:41 +00:00
|
|
|
bool doInitialization(Module &M);
|
|
|
|
bool doFinalization(Module &M);
|
|
|
|
};
|
|
|
|
} // end of anonymous namespace
|
|
|
|
|
2006-02-05 05:50:24 +00:00
|
|
|
#include "SparcGenAsmWriter.inc"
|
2005-12-16 06:34:17 +00:00
|
|
|
|
2006-02-05 05:50:24 +00:00
|
|
|
/// createSparcCodePrinterPass - Returns a pass that prints the SPARC
|
2004-03-04 06:00:41 +00:00
|
|
|
/// assembly code for a MachineFunction to the given output stream,
|
|
|
|
/// using the given target machine description. This should work
|
|
|
|
/// regardless of whether the function is in SSA form.
|
|
|
|
///
|
2006-02-05 05:50:24 +00:00
|
|
|
FunctionPass *llvm::createSparcCodePrinterPass(std::ostream &o,
|
|
|
|
TargetMachine &tm) {
|
|
|
|
return new SparcAsmPrinter(o, tm);
|
2004-03-04 06:00:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/// runOnMachineFunction - This uses the printMachineInstruction()
|
|
|
|
/// method to print assembly for each instruction.
|
|
|
|
///
|
2006-02-05 05:50:24 +00:00
|
|
|
bool SparcAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
2005-12-17 07:04:29 +00:00
|
|
|
SetupMachineFunction(MF);
|
|
|
|
|
2005-12-17 07:11:43 +00:00
|
|
|
// Print out constants referenced by the function
|
|
|
|
EmitConstantPool(MF.getConstantPool());
|
|
|
|
|
2004-03-04 06:00:41 +00:00
|
|
|
// BBNumber is used here so that a given Printer will never give two
|
|
|
|
// BBs the same name. (If you have a better way, please let me know!)
|
|
|
|
static unsigned BBNumber = 0;
|
|
|
|
|
|
|
|
O << "\n\n";
|
|
|
|
// What's my mangled name?
|
|
|
|
CurrentFnName = Mang->getValueName(MF.getFunction());
|
|
|
|
|
|
|
|
// Print out labels for the function.
|
|
|
|
O << "\t.text\n";
|
|
|
|
O << "\t.align 16\n";
|
|
|
|
O << "\t.globl\t" << CurrentFnName << "\n";
|
2004-03-16 22:52:04 +00:00
|
|
|
O << "\t.type\t" << CurrentFnName << ", #function\n";
|
2004-03-04 06:00:41 +00:00
|
|
|
O << CurrentFnName << ":\n";
|
|
|
|
|
|
|
|
// Number each basic block so that we can consistently refer to them
|
|
|
|
// in PC-relative references.
|
|
|
|
NumberForBB.clear();
|
|
|
|
for (MachineFunction::const_iterator I = MF.begin(), E = MF.end();
|
|
|
|
I != E; ++I) {
|
|
|
|
NumberForBB[I->getBasicBlock()] = BBNumber++;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Print out code for the function.
|
|
|
|
for (MachineFunction::const_iterator I = MF.begin(), E = MF.end();
|
|
|
|
I != E; ++I) {
|
|
|
|
// Print a label for the basic block.
|
Don't print a label for the first MBB in a function.
Compile this:
%_2E_str_8 = external global [75 x sbyte]
implementation ; Functions:
declare int %printf(sbyte*, ...)
void %test()
%tmp.101 = call int (sbyte*, ...)* %printf( sbyte* getelementptr ([75 x sbyte]* %_2E_str_8, int 0, int 0) ) ; <int> [#uses=0]
unreachable
}
to this:
main_endif_2E_8:
save -96, %o6, %o6
sethi %hi(_2E_str_8), %l0
add %l0, %lo(_2E_str_8), %o0
call printf
nop
instead of this:
main_endif_2E_8:
save -96, %o6, %o6
sethi %hi(_2E_str_8), %l0
or %g0, %lo(_2E_str_8), %l1 ;; extra instruction
add %l1, %l0, %o0
call printf
nop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25335 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-15 09:26:27 +00:00
|
|
|
if (I != MF.begin())
|
|
|
|
O << ".LBB" << Mang->getValueName(MF.getFunction ())
|
|
|
|
<< "_" << I->getNumber () << ":\t! "
|
|
|
|
<< I->getBasicBlock ()->getName () << "\n";
|
2004-03-04 06:00:41 +00:00
|
|
|
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
|
2005-04-22 18:06:01 +00:00
|
|
|
II != E; ++II) {
|
2004-03-04 06:00:41 +00:00
|
|
|
// Print the assembly for the instruction.
|
2005-12-17 06:54:41 +00:00
|
|
|
O << "\t";
|
|
|
|
printInstruction(II);
|
2005-12-17 07:04:29 +00:00
|
|
|
++EmittedInsts;
|
2004-03-04 06:00:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// We didn't modify anything.
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2006-02-05 05:50:24 +00:00
|
|
|
void SparcAsmPrinter::printOperand(const MachineInstr *MI, int opNum) {
|
2004-06-15 19:52:59 +00:00
|
|
|
const MachineOperand &MO = MI->getOperand (opNum);
|
2004-03-05 08:39:09 +00:00
|
|
|
const MRegisterInfo &RI = *TM.getRegisterInfo();
|
2004-06-15 19:52:59 +00:00
|
|
|
bool CloseParen = false;
|
2006-02-05 05:50:24 +00:00
|
|
|
if (MI->getOpcode() == SP::SETHIi && !MO.isRegister() && !MO.isImmediate()) {
|
2004-06-15 19:52:59 +00:00
|
|
|
O << "%hi(";
|
|
|
|
CloseParen = true;
|
2006-02-05 05:50:24 +00:00
|
|
|
} else if ((MI->getOpcode() == SP::ORri || MI->getOpcode() == SP::ADDri)
|
Don't print a label for the first MBB in a function.
Compile this:
%_2E_str_8 = external global [75 x sbyte]
implementation ; Functions:
declare int %printf(sbyte*, ...)
void %test()
%tmp.101 = call int (sbyte*, ...)* %printf( sbyte* getelementptr ([75 x sbyte]* %_2E_str_8, int 0, int 0) ) ; <int> [#uses=0]
unreachable
}
to this:
main_endif_2E_8:
save -96, %o6, %o6
sethi %hi(_2E_str_8), %l0
add %l0, %lo(_2E_str_8), %o0
call printf
nop
instead of this:
main_endif_2E_8:
save -96, %o6, %o6
sethi %hi(_2E_str_8), %l0
or %g0, %lo(_2E_str_8), %l1 ;; extra instruction
add %l1, %l0, %o0
call printf
nop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25335 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-15 09:26:27 +00:00
|
|
|
&& !MO.isRegister() && !MO.isImmediate()) {
|
2004-06-15 19:52:59 +00:00
|
|
|
O << "%lo(";
|
|
|
|
CloseParen = true;
|
|
|
|
}
|
2004-03-05 08:39:09 +00:00
|
|
|
switch (MO.getType()) {
|
|
|
|
case MachineOperand::MO_VirtualRegister:
|
|
|
|
if (Value *V = MO.getVRegValueOrNull()) {
|
|
|
|
O << "<" << V->getName() << ">";
|
2004-06-15 19:52:59 +00:00
|
|
|
break;
|
2004-03-05 08:39:09 +00:00
|
|
|
}
|
|
|
|
// FALLTHROUGH
|
|
|
|
case MachineOperand::MO_MachineRegister:
|
|
|
|
if (MRegisterInfo::isPhysicalRegister(MO.getReg()))
|
2004-03-06 05:30:21 +00:00
|
|
|
O << "%" << LowercaseString (RI.get(MO.getReg()).Name);
|
2004-03-05 08:39:09 +00:00
|
|
|
else
|
|
|
|
O << "%reg" << MO.getReg();
|
2004-06-15 19:52:59 +00:00
|
|
|
break;
|
2004-03-05 08:39:09 +00:00
|
|
|
|
|
|
|
case MachineOperand::MO_SignExtendedImmed:
|
|
|
|
case MachineOperand::MO_UnextendedImmed:
|
|
|
|
O << (int)MO.getImmedValue();
|
2004-06-15 19:52:59 +00:00
|
|
|
break;
|
2004-06-17 19:39:23 +00:00
|
|
|
case MachineOperand::MO_MachineBasicBlock: {
|
|
|
|
MachineBasicBlock *MBBOp = MO.getMachineBasicBlock();
|
|
|
|
O << ".LBB" << Mang->getValueName(MBBOp->getParent()->getFunction())
|
|
|
|
<< "_" << MBBOp->getNumber () << "\t! "
|
|
|
|
<< MBBOp->getBasicBlock ()->getName ();
|
|
|
|
return;
|
2004-03-05 08:39:09 +00:00
|
|
|
}
|
2004-06-17 19:39:23 +00:00
|
|
|
case MachineOperand::MO_PCRelativeDisp:
|
2006-02-05 05:50:24 +00:00
|
|
|
std::cerr << "Shouldn't use addPCDisp() when building Sparc MachineInstrs";
|
2004-06-17 19:39:23 +00:00
|
|
|
abort ();
|
|
|
|
return;
|
2004-03-05 08:39:09 +00:00
|
|
|
case MachineOperand::MO_GlobalAddress:
|
|
|
|
O << Mang->getValueName(MO.getGlobal());
|
2004-06-15 19:52:59 +00:00
|
|
|
break;
|
2004-03-05 08:39:09 +00:00
|
|
|
case MachineOperand::MO_ExternalSymbol:
|
|
|
|
O << MO.getSymbolName();
|
2004-06-15 19:52:59 +00:00
|
|
|
break;
|
2004-06-27 22:50:44 +00:00
|
|
|
case MachineOperand::MO_ConstantPoolIndex:
|
2005-12-17 07:11:43 +00:00
|
|
|
O << PrivateGlobalPrefix << "CPI" << getFunctionNumber() << "_"
|
|
|
|
<< MO.getConstantPoolIndex();
|
2004-06-27 22:50:44 +00:00
|
|
|
break;
|
2004-03-05 08:39:09 +00:00
|
|
|
default:
|
2005-04-21 23:30:14 +00:00
|
|
|
O << "<unknown operand type>"; abort (); break;
|
2004-03-05 08:39:09 +00:00
|
|
|
}
|
2004-06-15 19:52:59 +00:00
|
|
|
if (CloseParen) O << ")";
|
2004-03-05 08:39:09 +00:00
|
|
|
}
|
|
|
|
|
2006-02-10 07:35:42 +00:00
|
|
|
void SparcAsmPrinter::printMemOperand(const MachineInstr *MI, int opNum,
|
|
|
|
const char *Modifier) {
|
2005-12-17 20:04:49 +00:00
|
|
|
printOperand(MI, opNum);
|
2006-02-10 07:35:42 +00:00
|
|
|
|
|
|
|
// If this is an ADD operand, emit it like normal operands.
|
|
|
|
if (Modifier && !strcmp(Modifier, "arith")) {
|
|
|
|
O << ", ";
|
|
|
|
printOperand(MI, opNum+1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2005-12-18 02:37:35 +00:00
|
|
|
MachineOperand::MachineOperandType OpTy = MI->getOperand(opNum+1).getType();
|
|
|
|
|
|
|
|
if ((OpTy == MachineOperand::MO_VirtualRegister ||
|
|
|
|
OpTy == MachineOperand::MO_MachineRegister) &&
|
2006-02-05 05:50:24 +00:00
|
|
|
MI->getOperand(opNum+1).getReg() == SP::G0)
|
2005-12-18 02:37:35 +00:00
|
|
|
return; // don't print "+%g0"
|
|
|
|
if ((OpTy == MachineOperand::MO_SignExtendedImmed ||
|
|
|
|
OpTy == MachineOperand::MO_UnextendedImmed) &&
|
|
|
|
MI->getOperand(opNum+1).getImmedValue() == 0)
|
|
|
|
return; // don't print "+0"
|
|
|
|
|
2005-12-17 20:04:49 +00:00
|
|
|
O << "+";
|
2005-12-18 02:37:35 +00:00
|
|
|
if (OpTy == MachineOperand::MO_GlobalAddress ||
|
|
|
|
OpTy == MachineOperand::MO_ConstantPoolIndex) {
|
Teach the addressing mode stuff to fold "%lo" into 'ri' addressing modes,
allowing us to compile this:
to this:
%G1 = external global int
%G2 = external global int
void %test() {
%X = load int* %G1
store int %X, int* %G2
ret void
}
test:
save -96, %sp, %sp
sethi %hi(G1), %l0
ld [%l0+%lo(G1)], %l0
sethi %hi(G2), %l1
st %l0, [%l1+%lo(G2)]
restore %g0, %g0, %g0
retl
nop
instead of this:
test:
save -96, %sp, %sp
sethi %hi(G1), %l0
or %g0, %lo(G1), %l1
ld [%l1+%l0], %l0
sethi %hi(G2), %l1
or %g0, %lo(G2), %l2
st %l0, [%l2+%l1]
restore %g0, %g0, %g0
retl
nop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24812 91177308-0d34-0410-b5e6-96231b3b80d8
2005-12-18 02:27:00 +00:00
|
|
|
O << "%lo(";
|
|
|
|
printOperand(MI, opNum+1);
|
|
|
|
O << ")";
|
|
|
|
} else {
|
|
|
|
printOperand(MI, opNum+1);
|
|
|
|
}
|
2005-12-17 20:04:49 +00:00
|
|
|
}
|
|
|
|
|
2006-02-05 05:50:24 +00:00
|
|
|
void SparcAsmPrinter::printCCOperand(const MachineInstr *MI, int opNum) {
|
2006-01-31 06:49:09 +00:00
|
|
|
int CC = (int)MI->getOperand(opNum).getImmedValue();
|
2006-02-05 05:50:24 +00:00
|
|
|
O << SPARCCondCodeToString((SPCC::CondCodes)CC);
|
2006-01-31 06:49:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-12-17 20:04:49 +00:00
|
|
|
|
2006-02-05 05:50:24 +00:00
|
|
|
bool SparcAsmPrinter::doInitialization(Module &M) {
|
2004-03-04 06:00:41 +00:00
|
|
|
Mang = new Mangler(M);
|
|
|
|
return false; // success
|
|
|
|
}
|
|
|
|
|
2006-02-05 05:50:24 +00:00
|
|
|
bool SparcAsmPrinter::doFinalization(Module &M) {
|
2004-03-04 06:00:41 +00:00
|
|
|
const TargetData &TD = TM.getTargetData();
|
|
|
|
|
|
|
|
// Print out module-level global variables here.
|
2005-03-15 04:54:21 +00:00
|
|
|
for (Module::const_global_iterator I = M.global_begin(), E = M.global_end(); I != E; ++I)
|
2004-03-04 06:00:41 +00:00
|
|
|
if (I->hasInitializer()) { // External global require no code
|
|
|
|
O << "\n\n";
|
|
|
|
std::string name = Mang->getValueName(I);
|
|
|
|
Constant *C = I->getInitializer();
|
|
|
|
unsigned Size = TD.getTypeSize(C->getType());
|
|
|
|
unsigned Align = TD.getTypeAlignment(C->getType());
|
|
|
|
|
2005-04-21 23:30:14 +00:00
|
|
|
if (C->isNullValue() &&
|
2004-03-04 06:00:41 +00:00
|
|
|
(I->hasLinkOnceLinkage() || I->hasInternalLinkage() ||
|
|
|
|
I->hasWeakLinkage() /* FIXME: Verify correct */)) {
|
2005-12-17 07:04:29 +00:00
|
|
|
SwitchSection(".data", I);
|
2004-03-04 06:00:41 +00:00
|
|
|
if (I->hasInternalLinkage())
|
|
|
|
O << "\t.local " << name << "\n";
|
2005-04-21 23:30:14 +00:00
|
|
|
|
2004-03-04 06:00:41 +00:00
|
|
|
O << "\t.comm " << name << "," << TD.getTypeSize(C->getType())
|
|
|
|
<< "," << (unsigned)TD.getTypeAlignment(C->getType());
|
2004-03-16 22:37:12 +00:00
|
|
|
O << "\t\t! ";
|
2004-03-04 06:00:41 +00:00
|
|
|
WriteAsOperand(O, I, true, true, &M);
|
|
|
|
O << "\n";
|
|
|
|
} else {
|
|
|
|
switch (I->getLinkage()) {
|
|
|
|
case GlobalValue::LinkOnceLinkage:
|
|
|
|
case GlobalValue::WeakLinkage: // FIXME: Verify correct for weak.
|
|
|
|
// Nonnull linkonce -> weak
|
|
|
|
O << "\t.weak " << name << "\n";
|
2005-12-17 07:04:29 +00:00
|
|
|
SwitchSection("", I);
|
|
|
|
O << "\t.section\t\".llvm.linkonce.d." << name
|
|
|
|
<< "\",\"aw\",@progbits\n";
|
2004-03-04 06:00:41 +00:00
|
|
|
break;
|
2005-04-21 23:30:14 +00:00
|
|
|
|
2004-03-04 06:00:41 +00:00
|
|
|
case GlobalValue::AppendingLinkage:
|
|
|
|
// FIXME: appending linkage variables should go into a section of
|
|
|
|
// their name or something. For now, just emit them as external.
|
|
|
|
case GlobalValue::ExternalLinkage:
|
|
|
|
// If external or appending, declare as a global symbol
|
|
|
|
O << "\t.globl " << name << "\n";
|
|
|
|
// FALL THROUGH
|
|
|
|
case GlobalValue::InternalLinkage:
|
|
|
|
if (C->isNullValue())
|
2005-12-17 07:04:29 +00:00
|
|
|
SwitchSection(".bss", I);
|
2004-03-04 06:00:41 +00:00
|
|
|
else
|
2005-12-17 07:04:29 +00:00
|
|
|
SwitchSection(".data", I);
|
2004-03-04 06:00:41 +00:00
|
|
|
break;
|
2004-11-19 21:49:19 +00:00
|
|
|
case GlobalValue::GhostLinkage:
|
|
|
|
std::cerr << "Should not have any unmaterialized functions!\n";
|
|
|
|
abort();
|
2004-03-04 06:00:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
O << "\t.align " << Align << "\n";
|
2004-03-16 22:52:04 +00:00
|
|
|
O << "\t.type " << name << ",#object\n";
|
2004-03-04 06:00:41 +00:00
|
|
|
O << "\t.size " << name << "," << Size << "\n";
|
2004-03-16 22:37:12 +00:00
|
|
|
O << name << ":\t\t\t\t! ";
|
2004-03-04 06:00:41 +00:00
|
|
|
WriteAsOperand(O, I, true, true, &M);
|
|
|
|
O << " = ";
|
|
|
|
WriteAsOperand(O, C, false, false, &M);
|
|
|
|
O << "\n";
|
2005-12-17 07:17:08 +00:00
|
|
|
EmitGlobalConstant(C);
|
2004-03-04 06:00:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2005-12-17 07:04:29 +00:00
|
|
|
AsmPrinter::doFinalization(M);
|
2004-03-04 06:00:41 +00:00
|
|
|
return false; // success
|
|
|
|
}
|