Add support for variable argument functions!
[oota-llvm.git] / lib / Analysis / IPA / FindUsedTypes.cpp
index 1139cf3df8b96d644c569085e86ecc35648e3ab2..0916ab8c65f2a5cd427331bd11646a0dfe20871c 100644 (file)
@@ -13,7 +13,9 @@
 
 static RegisterAnalysis<FindUsedTypes>
 X("printusedtypes", "Find Used Types");
-AnalysisID FindUsedTypes::ID(AnalysisID::create<FindUsedTypes>());
+
+// stub to help linkage
+void FindUsedTypes::stub() {}
 
 // IncorporateType - Incorporate one type and all of its subtypes into the
 // collection of used types.
@@ -68,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);