From fce1143bcfa73f61845002fa50473d1a01384202 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Mon, 28 Oct 2002 00:28:31 +0000 Subject: Changed `MachineCodeForMethod' to `MachineFunction'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4301 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineCodeForBasicBlock.h | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'include/llvm/CodeGen/MachineCodeForBasicBlock.h') diff --git a/include/llvm/CodeGen/MachineCodeForBasicBlock.h b/include/llvm/CodeGen/MachineCodeForBasicBlock.h index a95103f35f..1a3c7a00f6 100644 --- a/include/llvm/CodeGen/MachineCodeForBasicBlock.h +++ b/include/llvm/CodeGen/MachineCodeForBasicBlock.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 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) { -- cgit v1.2.3-18-g5258