Add support for variable argument functions!
[oota-llvm.git] / lib / Analysis / IPA / FindUsedTypes.cpp
index f91b8ae226ef6fd27340607d1cf9f69f947be049..0916ab8c65f2a5cd427331bd11646a0dfe20871c 100644 (file)
 #include "llvm/Module.h"
 #include "llvm/Support/InstIterator.h"
 
-AnalysisID FindUsedTypes::ID(AnalysisID::create<FindUsedTypes>());
+static RegisterAnalysis<FindUsedTypes>
+X("printusedtypes", "Find Used Types");
+
+// stub to help linkage
+void FindUsedTypes::stub() {}
 
 // IncorporateType - Incorporate one type and all of its subtypes into the
 // collection of used types.
@@ -66,7 +70,7 @@ bool FindUsedTypes::run(Module &m) {
 // passed in, then the types are printed symbolically if possible, using the
 // symbol table from the module.
 //
-void FindUsedTypes::printTypes(std::ostream &o, const Module *M) const {
+void FindUsedTypes::print(std::ostream &o, const Module *M) const {
   o << "Types in use by this module:\n";
   if (M) {
     CachedWriter CW(M, o);