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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46741 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2008-02-05 06:18:42 +00:00
parent 7c95debb49
commit 515686b130
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.
// Print out all of the generated code.
TheModule->dump();
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.
// Print out all of the generated code.
TheModule-&gt;dump();
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();
// 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

@ -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();
// Print out all of the generated code.
TheModule-&gt;dump();
} // Free module provider (and thus the module) and pass manager.
return 0;
}
</pre>