aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Alpha/AlphaAsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-21 07:38:08 +0000
committerChris Lattner <sabre@nondot.org>2005-11-21 07:38:08 +0000
commit87744a2dbdc9fd357320ee109cef8ac15a2e8172 (patch)
treee97d6dd2590f912da6c98212f155f2baca23557d /lib/Target/Alpha/AlphaAsmPrinter.cpp
parent0a70a49dd688eb320f00272d9a6386a2d22ee3a7 (diff)
downloadexternal_llvm-87744a2dbdc9fd357320ee109cef8ac15a2e8172.zip
external_llvm-87744a2dbdc9fd357320ee109cef8ac15a2e8172.tar.gz
external_llvm-87744a2dbdc9fd357320ee109cef8ac15a2e8172.tar.bz2
Use PrivateGlobalPrefix for basic blocks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaAsmPrinter.cpp')
-rw-r--r--lib/Target/Alpha/AlphaAsmPrinter.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Target/Alpha/AlphaAsmPrinter.cpp b/lib/Target/Alpha/AlphaAsmPrinter.cpp
index 88ab8e0..7f9f0b7 100644
--- a/lib/Target/Alpha/AlphaAsmPrinter.cpp
+++ b/lib/Target/Alpha/AlphaAsmPrinter.cpp
@@ -37,8 +37,7 @@ namespace {
unsigned LabelNumber;
AlphaAsmPrinter(std::ostream &o, TargetMachine &tm)
- : AsmPrinter(o, tm), LabelNumber(0)
- {
+ : AsmPrinter(o, tm), LabelNumber(0) {
AlignmentIsInBytes = false;
PrivateGlobalPrefix = "$";
}
@@ -121,7 +120,8 @@ void AlphaAsmPrinter::printOp(const MachineOperand &MO, bool IsCallOp) {
case MachineOperand::MO_MachineBasicBlock: {
MachineBasicBlock *MBBOp = MO.getMachineBasicBlock();
- O << "$LBB" << Mang->getValueName(MBBOp->getParent()->getFunction())
+ O << PrivateGlobalPrefix << "LBB"
+ << Mang->getValueName(MBBOp->getParent()->getFunction())
<< "_" << MBBOp->getNumber() << "\t" << CommentString << " "
<< MBBOp->getBasicBlock()->getName();
return;
@@ -140,7 +140,7 @@ void AlphaAsmPrinter::printOp(const MachineOperand &MO, bool IsCallOp) {
//Abuse PCrel to specify pcrel calls
//calls are the only thing that use this flag
if (MO.isPCRelative())
- O << "$" << Mang->getValueName(MO.getGlobal()) << "..ng";
+ O << PrivateGlobalPrefix << Mang->getValueName(MO.getGlobal()) << "..ng";
else
O << Mang->getValueName(MO.getGlobal());
return;
@@ -187,8 +187,8 @@ bool AlphaAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
for (MachineFunction::const_iterator I = MF.begin(), E = MF.end();
I != E; ++I) {
// Print a label for the basic block.
- O << "$LBB" << CurrentFnName << "_" << I->getNumber() << ":\t"
- << CommentString << " " << I->getBasicBlock()->getName() << "\n";
+ O << PrivateGlobalPrefix << "LBB" << CurrentFnName << "_" << I->getNumber()
+ << ":\t" << CommentString << " " << I->getBasicBlock()->getName() << "\n";
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
II != E; ++II) {
// Print the assembly for the instruction.