Make code gcc 3.4 clean
authorChris Lattner <sabre@nondot.org>
Wed, 5 Nov 2003 05:15:42 +0000 (05:15 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 5 Nov 2003 05:15:42 +0000 (05:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9719 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/BasicBlock.cpp
lib/VMCore/Function.cpp
lib/VMCore/Module.cpp
lib/VMCore/PassManagerT.h

index 3110b4dd8269ebd337d86ad22e321918b3cbf2ed..2458cda203612e192eea8b440d1159887638ecbb 100644 (file)
@@ -56,7 +56,7 @@ iplist<Instruction> &ilist_traits<Instruction>::getList(BasicBlock *BB) {
 
 // Explicit instantiation of SymbolTableListTraits since some of the methods
 // are not in the public header file...
-template SymbolTableListTraits<Instruction, BasicBlock, Function>;
+template class SymbolTableListTraits<Instruction, BasicBlock, Function>;
 
 
 // BasicBlock ctor - If the function parameter is specified, the basic block is
index b86abfe905edd2ef4c0b48f22d6a0b849e329ead..f47ecea7af3db6a2868c4a714f5c94a991e27bcb 100644 (file)
@@ -43,8 +43,8 @@ iplist<Argument> &ilist_traits<Argument>::getList(Function *F) {
 
 // Explicit instantiations of SymbolTableListTraits since some of the methods
 // are not in the public header file...
-template SymbolTableListTraits<Argument, Function, Function>;
-template SymbolTableListTraits<BasicBlock, Function, Function>;
+template class SymbolTableListTraits<Argument, Function, Function>;
+template class SymbolTableListTraits<BasicBlock, Function, Function>;
 
 //===----------------------------------------------------------------------===//
 // Argument Implementation
index af28bec8acce59dd04ec9f57c46dc63029514e1e..e62c83f67a658b7d1131c9bc8eb1f2ada58e0fde 100644 (file)
@@ -47,8 +47,8 @@ iplist<GlobalVariable> &ilist_traits<GlobalVariable>::getList(Module *M) {
 
 // Explicit instantiations of SymbolTableListTraits since some of the methods
 // are not in the public header file...
-template SymbolTableListTraits<GlobalVariable, Module, Module>;
-template SymbolTableListTraits<Function, Module, Module>;
+template class SymbolTableListTraits<GlobalVariable, Module, Module>;
+template class SymbolTableListTraits<Function, Module, Module>;
 
 // Define the GlobalValueRefMap as a struct that wraps a map so that we don't
 // have Module.h depend on <map>
index 157f806651a392af8fbb92df59808dc9c0f6c64d..a715f5148e5e9e92ccebdc7abb025a3dd4e9c763 100644 (file)
@@ -141,7 +141,7 @@ class PassManagerT : public PassManagerTraits<UnitType>,public AnalysisResolver{
 
   friend class PassManagerTraits<UnitType>::PassClass;
   friend class PassManagerTraits<UnitType>::SubPassClass;  
-  friend class Traits;
+  friend class PassManagerTraits<UnitType>;
   friend class ImmutablePass;
 
   std::vector<PassClass*> Passes;    // List of passes to run