summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-25 21:28:50 +0000
committerChris Lattner <sabre@nondot.org>2010-01-25 21:28:50 +0000
commit3cde760023ea65b9f1359dd8a238085b8b5ebeaa (patch)
treec57fe45c0311b57093cbcdf6e21202d893dad27d /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent70c8fe5e4e3dfdc2f676b71ba6241bd0891667b2 (diff)
downloadbcm5719-llvm-3cde760023ea65b9f1359dd8a238085b8b5ebeaa.tar.gz
bcm5719-llvm-3cde760023ea65b9f1359dd8a238085b8b5ebeaa.zip
mcstreamerize gprel32 emission.
llvm-svn: 94452
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index d75210d0723..c0c93506ddb 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -544,8 +544,9 @@ void AsmPrinter::printPICJumpTableEntry(const MachineJumpTableInfo *MJTI,
const MachineBasicBlock *MBB,
unsigned uid) const {
// If the target supports GPRel, use it.
- if (const char *GPRel32Dir = MAI->getGPRel32Directive()) {
- O << GPRel32Dir << *GetMBBSymbol(MBB->getNumber()) << '\n';
+ if (MAI->getGPRel32Directive() != 0) {
+ MCSymbol *MBBSym = GetMBBSymbol(MBB->getNumber());
+ OutStreamer.EmitGPRel32Value(MCSymbolRefExpr::Create(MBBSym, OutContext));
return;
}
OpenPOWER on IntegriCloud