dump the module *before* we delete it, not after.

llvm-svn: 46741
This commit is contained in:
Chris Lattner 2008-02-05 06:18:42 +00:00
parent 0a04690fda
commit f4ed277135
4 changed files with 19 additions and 18 deletions

View File

@ -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.
return 0;
}
</pre>

View File

@ -1735,11 +1735,11 @@ int main() {
MainLoop();
TheFPM = 0;
} // Free module provider and pass manager.
// Print out all of the generated code.
TheModule-&gt;dump();
} // Free module provider (and thus the module) and pass manager.
return 0;
}
</pre>

View File

@ -1774,11 +1774,11 @@ int main() {
MainLoop();
TheFPM = 0;
} // Free module provider and pass manager.
// Print out all of the generated code.
TheModule->dump();
TheModule-&gt;dump();
} // Free module provider (and thus the module) and pass manager.
return 0;
}
</pre>

View File

@ -2129,11 +2129,12 @@ int main() {
MainLoop();
TheFPM = 0;
} // Free module provider and pass manager.
// Print out all of the generated code.
TheModule-&gt;dump();
} // Free module provider (and thus the module) and pass manager.
return 0;
}
</pre>