diff options
author | Chris Lattner <sabre@nondot.org> | 2005-11-08 02:11:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-11-08 02:11:51 +0000 |
commit | ce8eb0c16b7197eaa886f90c1ef9ab9bbf1957c4 (patch) | |
tree | 8ad2d4faa7559f5772587eb7bf70371ef79da736 /lib/Target/SparcV8 | |
parent | 26b91ebb63b29c94b3803b15ff1e6929f135caec (diff) | |
download | external_llvm-ce8eb0c16b7197eaa886f90c1ef9ab9bbf1957c4.zip external_llvm-ce8eb0c16b7197eaa886f90c1ef9ab9bbf1957c4.tar.gz external_llvm-ce8eb0c16b7197eaa886f90c1ef9ab9bbf1957c4.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24233 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV8')
-rw-r--r-- | lib/Target/SparcV8/SparcV8TargetMachine.cpp | 3 | ||||
-rw-r--r-- | lib/Target/SparcV8/SparcV8TargetMachine.h | 8 |
2 files changed, 3 insertions, 8 deletions
diff --git a/lib/Target/SparcV8/SparcV8TargetMachine.cpp b/lib/Target/SparcV8/SparcV8TargetMachine.cpp index d2587be..d2c7265 100644 --- a/lib/Target/SparcV8/SparcV8TargetMachine.cpp +++ b/lib/Target/SparcV8/SparcV8TargetMachine.cpp @@ -65,7 +65,8 @@ unsigned SparcV8TargetMachine::getModuleMatchQuality(const Module &M) { /// bool SparcV8TargetMachine::addPassesToEmitFile(PassManager &PM, std::ostream &Out, - CodeGenFileType FileType) { + CodeGenFileType FileType, + bool Fast) { if (FileType != TargetMachine::AssemblyFile) return true; // FIXME: Implement efficient support for garbage collection intrinsics. diff --git a/lib/Target/SparcV8/SparcV8TargetMachine.h b/lib/Target/SparcV8/SparcV8TargetMachine.h index 3ec07a3..d0dfa4e 100644 --- a/lib/Target/SparcV8/SparcV8TargetMachine.h +++ b/lib/Target/SparcV8/SparcV8TargetMachine.h @@ -45,17 +45,11 @@ public: static unsigned getModuleMatchQuality(const Module &M); static unsigned getJITMatchQuality(); - /// 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); }; } // end namespace llvm |