summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-31 18:35:51 +0000
committerDan Gohman <gohman@apple.com>2009-07-31 18:35:51 +0000
commitf266f89634363cb067a5b43cbe33f79c4397c08c (patch)
tree19e267d543ebabd187a0fa9a5cc12ef68eefbc0e
parentd26b14c34cbcee1448b86b524578fc51cc979023 (diff)
downloadexternal_llvm-f266f89634363cb067a5b43cbe33f79c4397c08c.zip
external_llvm-f266f89634363cb067a5b43cbe33f79c4397c08c.tar.gz
external_llvm-f266f89634363cb067a5b43cbe33f79c4397c08c.tar.bz2
MachineFunction no longer needs Annotation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77704 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/MachineFunction.h3
-rw-r--r--lib/CodeGen/MachineFunction.cpp3
2 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h
index b306583..13e223f 100644
--- a/include/llvm/CodeGen/MachineFunction.h
+++ b/include/llvm/CodeGen/MachineFunction.h
@@ -21,7 +21,6 @@
#include "llvm/ADT/ilist.h"
#include "llvm/Support/DebugLoc.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
-#include "llvm/Support/Annotation.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Recycler.h"
@@ -66,7 +65,7 @@ struct MachineFunctionInfo {
virtual ~MachineFunctionInfo() {}
};
-class MachineFunction : private Annotation {
+class MachineFunction {
Function *Fn;
const TargetMachine &Target;
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp
index aa3cfe2..0461f40 100644
--- a/lib/CodeGen/MachineFunction.cpp
+++ b/lib/CodeGen/MachineFunction.cpp
@@ -80,8 +80,7 @@ void ilist_traits<MachineBasicBlock>::deleteNode(MachineBasicBlock *MBB) {
MachineFunction::MachineFunction(Function *F,
const TargetMachine &TM)
- : Annotation(AnnotationManager::getID("CodeGen::MachineCodeForFunction")),
- Fn(F), Target(TM) {
+ : Fn(F), Target(TM) {
if (TM.getRegisterInfo())
RegInfo = new (Allocator.Allocate<MachineRegisterInfo>())
MachineRegisterInfo(*TM.getRegisterInfo());