diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2002-10-28 00:28:31 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2002-10-28 00:28:31 +0000 |
commit | fce1143bcfa73f61845002fa50473d1a01384202 (patch) | |
tree | f8953fdcdd5a3ff127e9897746af825ff28eebc3 /include/llvm/CodeGen/MachineBasicBlock.h | |
parent | 6f8fd25697c2aec8c915c34f3c90ee52b77b8f56 (diff) |
Changed `MachineCodeForMethod' to `MachineFunction'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineBasicBlock.h')
-rw-r--r-- | include/llvm/CodeGen/MachineBasicBlock.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index a95103f35f..1a3c7a00f6 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -1,27 +1,31 @@ -//===-- llvm/CodeGen/MachineCodeForBasicBlock.h -----------------*- C++ -*--=// +//===-- llvm/CodeGen/MachineBasicBlock.h ------------------------*- C++ -*--=// // // Collect the sequence of machine instructions for a basic block. // //===---------------------------------------------------------------------===// -#ifndef LLVM_CODEGEN_MACHINECODEFORBASICBLOCK_H -#define LLVM_CODEGEN_MACHINECODEFORBASICBLOCK_H +#ifndef LLVM_CODEGEN_MACHINEBASICBLOCK_H +#define LLVM_CODEGEN_MACHINEBASICBLOCK_H #include "llvm/BasicBlock.h" class MachineInstr; extern AnnotationID MCFBB_AID; -class MachineCodeForBasicBlock : public Annotation { +// FIXME: this should go away soon +class MachineBasicBlock; +typedef MachineBasicBlock MachineCodeForBasicBlock; + +class MachineBasicBlock: public Annotation { std::vector<MachineInstr*> Insts; public: - MachineCodeForBasicBlock(); - ~MachineCodeForBasicBlock() {} + MachineBasicBlock(); + ~MachineBasicBlock() {} - // Static methods to retrieve or destroy the MachineCodeForBasicBlock + // Static methods to retrieve or destroy the MachineBasicBlock // object for a given basic block. - static MachineCodeForBasicBlock& get(const BasicBlock *bb) { - return *(MachineCodeForBasicBlock*)bb->getOrCreateAnnotation(MCFBB_AID); + static MachineBasicBlock& get(const BasicBlock *bb) { + return *(MachineBasicBlock*)bb->getOrCreateAnnotation(MCFBB_AID); } static void destroy(const BasicBlock *bb) { |