[llvm-commits] CVS: llvm/tools/llc/llc.cpp

Chris Lattner sabre at nondot.org
Tue Dec 5 17:18:52 PST 2006



Changes in directory llvm/tools/llc:

llc.cpp updated: 1.140 -> 1.141
---
Log message:

make all llvm tools call llvm_shutdown when they exit, static'ify some stuff.

With this change, I can now move -stats to print when llvm_shutdown is called.


---
Diffs of the changes:  (+2 -0)

 llc.cpp |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/tools/llc/llc.cpp
diff -u llvm/tools/llc/llc.cpp:1.140 llvm/tools/llc/llc.cpp:1.141
--- llvm/tools/llc/llc.cpp:1.140	Sun Sep  3 23:14:57 2006
+++ llvm/tools/llc/llc.cpp	Tue Dec  5 19:18:00 2006
@@ -24,6 +24,7 @@
 #include "llvm/PassManager.h"
 #include "llvm/Pass.h"
 #include "llvm/Support/CommandLine.h"
+#include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/PluginLoader.h"
 #include "llvm/Support/FileUtilities.h"
 #include "llvm/Analysis/Verifier.h"
@@ -168,6 +169,7 @@
 // main - Entry point for the llc compiler.
 //
 int main(int argc, char **argv) {
+  llvm_shutdown_obj X;  // Call llvm_shutdown() on exit.
   try {
     cl::ParseCommandLineOptions(argc, argv, " llvm system compiler\n");
     sys::PrintStackTraceOnErrorSignal();






More information about the llvm-commits mailing list