diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-09-29 23:50:42 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-09-29 23:50:42 +0000 |
commit | 69bc3de4fc537eca69c1de37617f26e3a714c66e (patch) | |
tree | 1e329eb6d5e7a737a4ba29adb5bdab69082ca88d /llvm/lib/Target/ARM/ARMAsmPrinter.cpp | |
parent | a1127b2fa26ee63c3ffc790298654295cacdd2f6 (diff) | |
download | bcm5719-llvm-69bc3de4fc537eca69c1de37617f26e3a714c66e.tar.gz bcm5719-llvm-69bc3de4fc537eca69c1de37617f26e3a714c66e.zip |
Create a machine basic block in the constant pool and retrieve the symbol for an MBB.
llvm-svn: 140824
Diffstat (limited to 'llvm/lib/Target/ARM/ARMAsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMAsmPrinter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp index fe8a65e700f..f5d5248d36a 100644 --- a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp +++ b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp @@ -853,6 +853,9 @@ EmitMachineConstantPoolValue(MachineConstantPoolValue *MCPV) { } else if (ACPV->isGlobalValue()) { const GlobalValue *GV = ACPV->getGV(); MCSym = GetARMGVSymbol(GV); + } else if (ACPV->isMachineBasicBlock()) { + const MachineBasicBlock *MBB = ACPV->getMBB(); + MCSym = MBB->getSymbol(); } else { assert(ACPV->isExtSymbol() && "unrecognized constant pool value"); MCSym = GetExternalSymbolSymbol(ACPV->getSymbol()); |