aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/IA64/IA64AsmPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/IA64/IA64AsmPrinter.cpp')
-rw-r--r--lib/Target/IA64/IA64AsmPrinter.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/Target/IA64/IA64AsmPrinter.cpp b/lib/Target/IA64/IA64AsmPrinter.cpp
index c1a9c40d51..5eaa6fab31 100644
--- a/lib/Target/IA64/IA64AsmPrinter.cpp
+++ b/lib/Target/IA64/IA64AsmPrinter.cpp
@@ -1,10 +1,10 @@
//===-- IA64AsmPrinter.cpp - Print out IA64 LLVM as assembly --------------===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by Duraid Madina and is distributed under the
// University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file contains a printer that converts from our internal representation
@@ -37,7 +37,7 @@ namespace {
struct IA64SharedAsmPrinter : public AsmPrinter {
std::set<std::string> ExternalFunctionNames, ExternalObjectNames;
-
+
IA64SharedAsmPrinter(std::ostream &O, TargetMachine &TM)
: AsmPrinter(O, TM) { }
@@ -81,7 +81,7 @@ static void SwitchSection(std::ostream &OS, std::string &CurSection,
void IA64SharedAsmPrinter::printConstantPool(MachineConstantPool *MCP) {
const std::vector<Constant*> &CP = MCP->getConstants();
const TargetData &TD = TM.getTargetData();
-
+
if (CP.empty()) return;
O << "\n\t.section .data, \"aw\", \"progbits\"\n";
@@ -108,7 +108,7 @@ bool IA64SharedAsmPrinter::doFinalization(Module &M) {
unsigned Size = TD.getTypeSize(C->getType());
unsigned Align = TD.getTypeAlignmentShift(C->getType());
- if (C->isNullValue() &&
+ if (C->isNullValue() &&
(I->hasLinkOnceLinkage() || I->hasInternalLinkage() ||
I->hasWeakLinkage() /* FIXME: Verify correct */)) {
SwitchSection(O, CurSection, ".data");
@@ -170,7 +170,7 @@ bool IA64SharedAsmPrinter::doFinalization(Module &M) {
O << "\t.global " << *i << "\n\t.type " << *i << ", @function\n";
}
O << "\n\n";
-
+
// we print out ".global X \n .type X, @object" for each external object
O << "\n\n// (external) symbols referenced (and not defined) above: \n";
for (std::set<std::string>::iterator i = ExternalObjectNames.begin(),
@@ -224,7 +224,7 @@ namespace {
printOp(MO);
}
}
-
+
void printS8ImmOperand(const MachineInstr *MI, unsigned OpNo,
MVT::ValueType VT) {
int val=(unsigned int)MI->getOperand(OpNo).getImmedValue();
@@ -251,15 +251,15 @@ namespace {
MVT::ValueType VT) {
O << (int64_t)MI->getOperand(OpNo).getImmedValue();
}
-
+
void printCallOperand(const MachineInstr *MI, unsigned OpNo,
MVT::ValueType VT) {
- printOp(MI->getOperand(OpNo), true); // this is a br.call instruction
+ printOp(MI->getOperand(OpNo), true); // this is a br.call instruction
}
void printMachineInstruction(const MachineInstr *MI);
void printOp(const MachineOperand &MO, bool isBRCALLinsn= false);
- bool runOnMachineFunction(MachineFunction &F);
+ bool runOnMachineFunction(MachineFunction &F);
bool doInitialization(Module &M);
};
} // end of anonymous namespace
@@ -355,11 +355,11 @@ void IA64AsmPrinter::printOp(const MachineOperand &MO,
// @ltoff(@fptr(X)) ?
if(F && !isBRCALLinsn /*&& F->isExternal()*/)
Needfptr=true;
-
+
// if this is the target of a call instruction, we should define
// the function somewhere (GNU gas has no problem without this, but
// Intel ias rightly complains of an 'undefined symbol')
-
+
if(F /*&& isBRCALLinsn*/ && F->isExternal())
ExternalFunctionNames.insert(Mang->getValueName(MO.getGlobal()));
else
@@ -387,7 +387,7 @@ void IA64AsmPrinter::printOp(const MachineOperand &MO,
ExternalFunctionNames.insert(MO.getSymbolName());
return;
default:
- O << "<AsmPrinter: unknown operand type: " << MO.getType() << " >"; return;
+ O << "<AsmPrinter: unknown operand type: " << MO.getType() << " >"; return;
}
}
@@ -395,16 +395,16 @@ void IA64AsmPrinter::printOp(const MachineOperand &MO,
/// MI to the current output stream.
///
void IA64AsmPrinter::printMachineInstruction(const MachineInstr *MI) {
-
+
++EmittedInsts;
-
+
// Call the autogenerated instruction printer routines.
printInstruction(MI);
}
bool IA64AsmPrinter::doInitialization(Module &M) {
AsmPrinter::doInitialization(M);
-
+
O << "\n.ident \"LLVM-ia64\"\n\n"
<< "\t.psr lsb\n" // should be "msb" on HP-UX, for starters
<< "\t.radix C\n"