Fix a typo in Sparc.cpp.
authorBrian Gaeke <gaeke@uiuc.edu>
Thu, 18 Sep 2003 17:37:46 +0000 (17:37 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Thu, 18 Sep 2003 17:37:46 +0000 (17:37 +0000)
Update names of some pass creator fns in addPassesToEmitAssembly().
FunctionInfo is gone.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8599 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9Internals.h
lib/Target/SparcV9/SparcV9TargetMachine.cpp

index 35a649c3e5b286d20940b5e8f712cded2d0e6e94..79bfde7e22f6ace671f09f81bd4520385a0d713d 100644 (file)
@@ -687,10 +687,8 @@ public:
   // getModuleAsmPrinterPass - Writes generated machine code to assembly file.
   Pass* getModuleAsmPrinterPass(std::ostream &Out);
 
-  // getEmitBytecodeToAsmPass - Emits final LLVM bytecode to assembly file.
-  Pass* getEmitBytecodeToAsmPass(std::ostream &Out);
+  // getBytecodeAsmPrinterPass - Emits final LLVM bytecode to assembly file.
+  Pass* getBytecodeAsmPrinterPass(std::ostream &Out);
 };
 
-Pass *getFunctionInfo(std::ostream &out);
-
 #endif
index cfb753a6ca217c5ae5a3af4d38932f877fda9c10..7b06644eeb03316cb38ddcb666033f5fb521e80b 100644 (file)
@@ -180,7 +180,7 @@ bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
   
   // If LLVM dumping after transformations is requested, add it to the pipeline
   if (DumpInput)
-    PM.add(new PrintFunctionPass("Input code to instsr. selection:\n",
+    PM.add(new PrintFunctionPass("Input code to instr. selection:\n",
                                  &std::cerr));
 
   PM.add(createInstructionSelectionPass(*this));
@@ -196,7 +196,7 @@ bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
     PM.add(createPeepholeOptsPass(*this));
 
   if (EmitMappingInfo)
-    PM.add(getMappingInfoCollector(Out));  
+    PM.add(getMappingInfoAsmPrinterPass(Out));  
 
   // Output assembly language to the .s file.  Assembly emission is split into
   // two parts: Function output and Global value output.  This is because
@@ -211,10 +211,8 @@ bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
   PM.add(getModuleAsmPrinterPass(Out));
 
   // Emit bytecode to the assembly file into its special section next
-  if (EmitMappingInfo) {
-    PM.add(getEmitBytecodeToAsmPass(Out));
-    PM.add(getFunctionInfo(Out)); 
-  }
+  if (EmitMappingInfo)
+    PM.add(getBytecodeAsmPrinterPass(Out));
 
   return false;
 }