Hacks to make the MachineFunction class be able to delete the MFI object
authorChris Lattner <sabre@nondot.org>
Mon, 16 Aug 2004 22:37:18 +0000 (22:37 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 16 Aug 2004 22:37:18 +0000 (22:37 +0000)
without knowing anything about it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15836 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/MachineFunctionInfo.h

index 74a75e8e483ce88b80f9909cfb5b906e9906d38d..f0c970f9ff7a48c2afdab80b95651af8fc1861db 100644 (file)
@@ -19,6 +19,7 @@
 #define MACHINEFUNCTIONINFO_H
 
 #include "MachineCodeForInstruction.h"
+#include "llvm/CodeGen/MachineFunction.h"
 #include "Support/HashExtras.h"
 #include "Support/hash_set"
 
@@ -28,7 +29,7 @@ class MachineFunction;
 class Constant;
 class Type;
 
-class MachineFunctionInfo {
+class MachineFunctionInfo : public MachineFunctionInfoBase {
   hash_set<const Constant*> constantsForConstPool;
   hash_map<const Value*, int> offsets;