[llvm-commits] CVS: llvm/lib/Target/Sparc/Sparc.cpp SparcInternals.h

Chris Lattner lattner at cs.uiuc.edu
Tue Oct 29 15:13:04 PST 2002


Changes in directory llvm/lib/Target/Sparc:

Sparc.cpp updated: 1.52 -> 1.53
SparcInternals.h updated: 1.71 -> 1.72

---
Log message:

Allow TargetMachine to refuse static code gen



---
Diffs of the changes:

Index: llvm/lib/Target/Sparc/Sparc.cpp
diff -u llvm/lib/Target/Sparc/Sparc.cpp:1.52 llvm/lib/Target/Sparc/Sparc.cpp:1.53
--- llvm/lib/Target/Sparc/Sparc.cpp:1.52	Tue Oct 29 14:47:26 2002
+++ llvm/lib/Target/Sparc/Sparc.cpp	Tue Oct 29 15:12:45 2002
@@ -141,7 +141,7 @@
 // addPassesToEmitAssembly - This method controls the entire code generation
 // process for the ultra sparc.
 //
-void UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
+bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
 {
   // Construct and initialize the MachineFunction object for this fn.
   PM.add(createMachineCodeConstructionPass(*this));
@@ -189,4 +189,5 @@
   // Emit bytecode to the assembly file into its special section next
   PM.add(getEmitBytecodeToAsmPass(Out));
   PM.add(getFunctionInfo(Out)); 
+  return false;
 }


Index: llvm/lib/Target/Sparc/SparcInternals.h
diff -u llvm/lib/Target/Sparc/SparcInternals.h:1.71 llvm/lib/Target/Sparc/SparcInternals.h:1.72
--- llvm/lib/Target/Sparc/SparcInternals.h:1.71	Tue Oct 29 09:45:20 2002
+++ llvm/lib/Target/Sparc/SparcInternals.h	Tue Oct 29 15:12:45 2002
@@ -718,7 +718,7 @@
   virtual const MachineCacheInfo &getCacheInfo() const { return cacheInfo; }
   virtual const MachineOptInfo   &getOptInfo()   const { return optInfo; }
 
-  virtual void addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
+  virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
 
   // getPrologEpilogCodeInserter - Inserts prolog/epilog code.
   virtual Pass* getPrologEpilogInsertionPass();





More information about the llvm-commits mailing list