summaryrefslogtreecommitdiff
path: root/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
commit1b2eb0e8a6aaf034675b17be6d853cb1c666200f (patch)
treecc4c2896f2e93910bca1000f96a498c2c089259c /lib/CodeGen/MachineBasicBlock.cpp
parent11d53c129fc9c2a4510605ec0a1696f58750af52 (diff)
downloadllvm-1b2eb0e8a6aaf034675b17be6d853cb1c666200f.tar.gz
llvm-1b2eb0e8a6aaf034675b17be6d853cb1c666200f.tar.bz2
llvm-1b2eb0e8a6aaf034675b17be6d853cb1c666200f.tar.xz
eliminate the now-unneeded context argument of MBB::getSymbol()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--lib/CodeGen/MachineBasicBlock.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp
index 32b1a7d728..fc8ae5f705 100644
--- a/lib/CodeGen/MachineBasicBlock.cpp
+++ b/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()));