summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-13 21:04:28 +0000
committerChris Lattner <sabre@nondot.org>2010-03-13 21:04:28 +0000
commit29bdac4928c417f25670e462ca55ffbd68a4f11b (patch)
treee1f3ca10a53c43e051822721257cb3da168cf7e8 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parente468f88b26f55e3f42a4870c2756c0184e8a4eb4 (diff)
downloadbcm5719-llvm-29bdac4928c417f25670e462ca55ffbd68a4f11b.tar.gz
bcm5719-llvm-29bdac4928c417f25670e462ca55ffbd68a4f11b.zip
eliminate the now-unneeded context argument of MBB::getSymbol()
llvm-svn: 98451
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index 32b1a7d728e..fc8ae5f705d 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp
@@ -41,9 +41,10 @@ MachineBasicBlock::~MachineBasicBlock() {
/// getSymbol - Return the MCSymbol for this basic block.
///
-MCSymbol *MachineBasicBlock::getSymbol(MCContext &Ctx) const {
+MCSymbol *MachineBasicBlock::getSymbol() const {
const MachineFunction *MF = getParent();
- const char *Prefix = MF->getTarget().getMCAsmInfo()->getPrivateGlobalPrefix();
+ MCContext &Ctx = MF->getContext();
+ const char *Prefix = Ctx.getAsmInfo().getPrivateGlobalPrefix();
return Ctx.GetOrCreateTemporarySymbol(Twine(Prefix) + "BB" +
Twine(MF->getFunctionNumber()) + "_" +
Twine(getNumber()));
OpenPOWER on IntegriCloud