commit | bf3c4cfaad706db21ac82a4376e1899d0d7f0935 | [log] [tgz] |
---|---|---|
author | Brian Gaeke <gaeke@uiuc.edu> | Thu Aug 14 06:09:32 2003 +0000 |
committer | Brian Gaeke <gaeke@uiuc.edu> | Thu Aug 14 06:09:32 2003 +0000 |
tree | 0554aebd575c26ce52252d94d08c2c151dc7ffbf | |
parent | 1d3fa21cdd115b48241ff031f01e6b489b077abf [diff] [blame] |
Factory methods for function passes now return type FunctionPass *. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7839 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp index fa81e9e..6d40e1d 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
@@ -74,7 +74,7 @@ }; } -Pass *getRegisterAllocator(TargetMachine &T) { +FunctionPass *getRegisterAllocator(TargetMachine &T) { return new RegisterAllocator(T); }