diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-04 15:54:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-04 15:54:09 +0000 |
commit | 2f9b28e59a1e10152cd32f2c717e89d47a2fd7e3 (patch) | |
tree | a1c4a7e402c3a8f8db336bc5a65a6db2a43b1752 /include/llvm | |
parent | 59ba109d9dfe37f27fd1d0c993a323c43fe0e49c (diff) | |
download | llvm-2f9b28e59a1e10152cd32f2c717e89d47a2fd7e3.tar.gz llvm-2f9b28e59a1e10152cd32f2c717e89d47a2fd7e3.tar.bz2 llvm-2f9b28e59a1e10152cd32f2c717e89d47a2fd7e3.tar.xz |
Convert RegisterAllocator interface to opaque pass type, so that users do not
need to know _anything_ about RegAlloc to use it. Well in the end maybe.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1681 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/RegisterAllocation.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/llvm/CodeGen/RegisterAllocation.h b/include/llvm/CodeGen/RegisterAllocation.h index 161be18498..e552fbe887 100644 --- a/include/llvm/CodeGen/RegisterAllocation.h +++ b/include/llvm/CodeGen/RegisterAllocation.h @@ -9,16 +9,12 @@ #include "llvm/Pass.h" class TargetMachine; +class MethodPass; //---------------------------------------------------------------------------- // Entry point for register allocation for a module //---------------------------------------------------------------------------- -class RegisterAllocation : public MethodPass { - TargetMachine &Target; -public: - inline RegisterAllocation(TargetMachine &T) : Target(T) {} - bool runOnMethod(Method *M); -}; +MethodPass *getRegisterAllocator(TargetMachine &T); #endif |