Changes in directory llvm/lib/Target/X86:

X86TargetMachine.cpp updated: 1.86 -> 1.87
X86TargetMachine.h updated: 1.30 -> 1.31
---
Log message:

Add a new option to indicate we want the code generator to emit code 
quickly,not spending tons of time microoptimizing it.  This is useful for an 
-O0style of build.


---
Diffs of the changes:  (+3 -8)

 X86TargetMachine.cpp |    3 ++-
 X86TargetMachine.h   |    8 +-------
 2 files changed, 3 insertions(+), 8 deletions(-)


Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.86 
llvm/lib/Target/X86/X86TargetMachine.cpp:1.87
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.86       Thu Sep  1 16:38:21 2005
+++ llvm/lib/Target/X86/X86TargetMachine.cpp    Mon Nov  7 20:11:51 2005
@@ -106,7 +106,8 @@
 // addPassesToEmitFile - We currently use all of the same passes as the JIT
 // does to emit statically compiled machine code.
 bool X86TargetMachine::addPassesToEmitFile(PassManager &PM, std::ostream &Out,
-                                           CodeGenFileType FileType) {
+                                           CodeGenFileType FileType,
+                                           bool Fast) {
   if (FileType != TargetMachine::AssemblyFile &&
       FileType != TargetMachine::ObjectFile) return true;
 


Index: llvm/lib/Target/X86/X86TargetMachine.h
diff -u llvm/lib/Target/X86/X86TargetMachine.h:1.30 
llvm/lib/Target/X86/X86TargetMachine.h:1.31
--- llvm/lib/Target/X86/X86TargetMachine.h:1.30 Thu Sep  1 16:38:21 2005
+++ llvm/lib/Target/X86/X86TargetMachine.h      Mon Nov  7 20:11:51 2005
@@ -41,17 +41,11 @@
     return &InstrInfo.getRegisterInfo();
   }
 
-  /// addPassesToEmitMachineCode - Add passes to the specified pass manager to
-  /// get machine code emitted.  This uses a MachineCodeEmitter object to 
handle
-  /// actually outputting the machine code and resolving things like the 
address
-  /// of functions.  This method should returns true if machine code emission 
is
-  /// not supported.
-  ///
   virtual bool addPassesToEmitMachineCode(FunctionPassManager &PM,
                                           MachineCodeEmitter &MCE);
 
   virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out,
-                                   CodeGenFileType FileType);
+                                   CodeGenFileType FileType, bool Fast);
 
   static unsigned getModuleMatchQuality(const Module &M);
   static unsigned getJITMatchQuality();



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to