mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-02 13:21:43 +00:00
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
This commit is contained in:
parent
8815c79ea4
commit
36b36037a3
@ -32,7 +32,7 @@ namespace {
|
|||||||
/// the entire function.
|
/// the entire function.
|
||||||
///
|
///
|
||||||
bool runOnFunction(Function &Fn) {
|
bool runOnFunction(Function &Fn) {
|
||||||
F = new MachineFunction(&Fn, TM);
|
F = &MachineFunction::construct(&Fn, TM);
|
||||||
visit(Fn);
|
visit(Fn);
|
||||||
RegMap.clear();
|
RegMap.clear();
|
||||||
F = 0;
|
F = 0;
|
||||||
|
@ -32,7 +32,7 @@ namespace {
|
|||||||
/// the entire function.
|
/// the entire function.
|
||||||
///
|
///
|
||||||
bool runOnFunction(Function &Fn) {
|
bool runOnFunction(Function &Fn) {
|
||||||
F = new MachineFunction(&Fn, TM);
|
F = &MachineFunction::construct(&Fn, TM);
|
||||||
visit(Fn);
|
visit(Fn);
|
||||||
RegMap.clear();
|
RegMap.clear();
|
||||||
F = 0;
|
F = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user