diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-26 04:55:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-26 04:55:51 +0000 |
commit | f71cb015c1386ff8adc9ef0aa03fc0f0fc4a6e3e (patch) | |
tree | d8a059d88a780969f42d32dc19b89e65d2458971 /include | |
parent | 030c4bfbc9885444b8a5ad0b5f1e50045a351d17 (diff) | |
download | external_llvm-f71cb015c1386ff8adc9ef0aa03fc0f0fc4a6e3e.tar.gz external_llvm-f71cb015c1386ff8adc9ef0aa03fc0f0fc4a6e3e.tar.bz2 external_llvm-f71cb015c1386ff8adc9ef0aa03fc0f0fc4a6e3e.zip |
add a new MachineBasicBlock::getSymbol method, replacing
the AsmPrinter::GetMBBSymbol.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 4 | ||||
-rw-r--r-- | include/llvm/CodeGen/MachineBasicBlock.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 696b704851..98a28a2eee 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -301,10 +301,6 @@ namespace llvm { /// ExternalSymbol. MCSymbol *GetExternalSymbolSymbol(StringRef Sym) const; - /// GetMBBSymbol - Return the MCSymbol corresponding to the specified basic - /// block label. - MCSymbol *GetMBBSymbol(unsigned MBBID) const; - /// GetCPISymbol - Return the symbol for the specified constant pool entry. MCSymbol *GetCPISymbol(unsigned CPID) const; diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index 20644c17e1..283322b746 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -352,6 +352,10 @@ public: int getNumber() const { return Number; } void setNumber(int N) { Number = N; } + /// getSymbol - Return the MCSymbol for this basic block. + /// + MCSymbol *getSymbol(MCContext &Ctx) const; + private: // Methods used to maintain doubly linked list of blocks... friend struct ilist_traits<MachineBasicBlock>; |