forked from OSchip/llvm-project
dump the module *before* we delete it, not after.
llvm-svn: 46741
This commit is contained in:
parent
0a04690fda
commit
f4ed277135
|
@ -1109,11 +1109,11 @@ int main() {
|
|||
MainLoop();
|
||||
|
||||
TheFPM = 0;
|
||||
} // Free module provider and pass manager.
|
||||
|
||||
// Print out all of the generated code.
|
||||
TheModule->dump();
|
||||
} // Free module provider (and thus the module) and pass manager.
|
||||
|
||||
|
||||
// Print out all of the generated code.
|
||||
TheModule->dump();
|
||||
return 0;
|
||||
}
|
||||
</pre>
|
||||
|
|
|
@ -1735,11 +1735,11 @@ int main() {
|
|||
MainLoop();
|
||||
|
||||
TheFPM = 0;
|
||||
} // Free module provider and pass manager.
|
||||
|
||||
// Print out all of the generated code.
|
||||
TheModule->dump();
|
||||
} // Free module provider (and thus the module) and pass manager.
|
||||
|
||||
|
||||
// Print out all of the generated code.
|
||||
TheModule->dump();
|
||||
return 0;
|
||||
}
|
||||
</pre>
|
||||
|
|
|
@ -1774,11 +1774,11 @@ int main() {
|
|||
MainLoop();
|
||||
|
||||
TheFPM = 0;
|
||||
} // Free module provider and pass manager.
|
||||
|
||||
|
||||
// Print out all of the generated code.
|
||||
TheModule->dump();
|
||||
|
||||
// Print out all of the generated code.
|
||||
TheModule->dump();
|
||||
} // Free module provider (and thus the module) and pass manager.
|
||||
|
||||
return 0;
|
||||
}
|
||||
</pre>
|
||||
|
|
|
@ -2129,11 +2129,12 @@ int main() {
|
|||
MainLoop();
|
||||
|
||||
TheFPM = 0;
|
||||
} // Free module provider and pass manager.
|
||||
|
||||
|
||||
// Print out all of the generated code.
|
||||
TheModule->dump();
|
||||
|
||||
// Print out all of the generated code.
|
||||
TheModule->dump();
|
||||
|
||||
} // Free module provider (and thus the module) and pass manager.
|
||||
|
||||
return 0;
|
||||
}
|
||||
</pre>
|
||||
|
|
Loading…
Reference in New Issue