Reimplement TargetMachineRegistry in terms of TargetRegistry.

- This is a temporary hack to aid in incremental refactoring, for now we
   allocate a new TargetMachineRegistryEntry on every getClosest... call.

 - No intended functionality change, other than the leaked memory.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75766 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2009-07-15 09:53:37 +00:00
parent 4883630360
commit e0bda7df1a
2 changed files with 16 additions and 41 deletions

View File

@@ -49,6 +49,8 @@ namespace llvm {
bool);
friend struct TargetRegistry;
// FIXME: Temporary hack, please remove.
friend struct TargetMachineRegistry;
/// Next - The next registered target in the linked list, maintained by the
/// TargetRegistry.