mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Code generation phases are not allowed to modify the LLVM representation.
Because of this, we'll make the MBB->BB mapping const as it should be git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7351 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8d3f8e226d
commit
1194e95019
@ -15,15 +15,15 @@ template <typename T> struct ilist_traits;
|
||||
class MachineBasicBlock {
|
||||
std::vector<MachineInstr*> Insts;
|
||||
MachineBasicBlock *Prev, *Next;
|
||||
BasicBlock *BB;
|
||||
const BasicBlock *BB;
|
||||
public:
|
||||
MachineBasicBlock(BasicBlock *bb = 0) : Prev(0), Next(0), BB(bb) {}
|
||||
MachineBasicBlock(const BasicBlock *bb = 0) : Prev(0), Next(0), BB(bb) {}
|
||||
~MachineBasicBlock() {}
|
||||
|
||||
/// getBasicBlock - Return the LLVM basic block that this instance
|
||||
/// corresponded to originally.
|
||||
///
|
||||
BasicBlock *getBasicBlock() const { return BB; }
|
||||
const BasicBlock *getBasicBlock() const { return BB; }
|
||||
|
||||
typedef std::vector<MachineInstr*>::iterator iterator;
|
||||
typedef std::vector<MachineInstr*>::const_iterator const_iterator;
|
||||
|
Loading…
Reference in New Issue
Block a user