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

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



Changes in directory llvm/tools/gccas:

gccas.cpp updated: 1.121 -> 1.122
---
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)

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


Index: llvm/tools/gccas/gccas.cpp
diff -u llvm/tools/gccas/gccas.cpp:1.121 llvm/tools/gccas/gccas.cpp:1.122
--- llvm/tools/gccas/gccas.cpp:1.121	Tue Nov 28 18:19:40 2006
+++ llvm/tools/gccas/gccas.cpp	Tue Dec  5 19:18:00 2006
@@ -24,6 +24,7 @@
 #include "llvm/Transforms/Scalar.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Streams.h"
+#include "llvm/Support/ManagedStatic.h"
 #include "llvm/System/Signals.h"
 #include <iostream>
 #include <memory>
@@ -133,6 +134,7 @@
 
 
 int main(int argc, char **argv) {
+  llvm_shutdown_obj X;  // Call llvm_shutdown() on exit.
   try {
     cl::ParseCommandLineOptions(argc, argv,
                                 " llvm .s -> .o assembler for GCC\n");






More information about the llvm-commits mailing list