diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-29 23:40:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-29 23:40:58 +0000 |
commit | 36b36037a321072116c8670b971b93dd464fca85 (patch) | |
tree | 25dae11826cee28b9615f3de3e96c3ea1c8d57f4 | |
parent | 8815c79ea4df2c5792dd7c44349710d73831f051 (diff) | |
download | llvm-36b36037a321072116c8670b971b93dd464fca85.tar.gz llvm-36b36037a321072116c8670b971b93dd464fca85.tar.bz2 llvm-36b36037a321072116c8670b971b93dd464fca85.tar.xz |
Construct annotation, to make sure it's attached to function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4429 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/InstSelectSimple.cpp | 2 | ||||
-rw-r--r-- | lib/Target/X86/X86ISelSimple.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index 4659bea907..358ea2ed11 100644 --- a/lib/Target/X86/InstSelectSimple.cpp +++ b/lib/Target/X86/InstSelectSimple.cpp @@ -32,7 +32,7 @@ namespace { /// the entire function. /// bool runOnFunction(Function &Fn) { - F = new MachineFunction(&Fn, TM); + F = &MachineFunction::construct(&Fn, TM); visit(Fn); RegMap.clear(); F = 0; diff --git a/lib/Target/X86/X86ISelSimple.cpp b/lib/Target/X86/X86ISelSimple.cpp index 4659bea907..358ea2ed11 100644 --- a/lib/Target/X86/X86ISelSimple.cpp +++ b/lib/Target/X86/X86ISelSimple.cpp @@ -32,7 +32,7 @@ namespace { /// the entire function. /// bool runOnFunction(Function &Fn) { - F = new MachineFunction(&Fn, TM); + F = &MachineFunction::construct(&Fn, TM); visit(Fn); RegMap.clear(); F = 0; |