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 | b28f2140331aed7da8129c124e1389bd0fe539b7 (patch) | |
| tree | a5529ecf57aaf347a8043f345e6f8c343f22c41e /llvm/lib/Target/Alpha | |
| parent | 1d2f26adcc6b8cf88d268ad5896700ee1c96a897 (diff) | |
| download | bcm5719-llvm-b28f2140331aed7da8129c124e1389bd0fe539b7.tar.gz bcm5719-llvm-b28f2140331aed7da8129c124e1389bd0fe539b7.zip | |
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.
llvm-svn: 24233
Diffstat (limited to 'llvm/lib/Target/Alpha')
| -rw-r--r-- | llvm/lib/Target/Alpha/AlphaTargetMachine.cpp | 3 | ||||
| -rw-r--r-- | llvm/lib/Target/Alpha/AlphaTargetMachine.h | 8 |
2 files changed, 3 insertions, 8 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaTargetMachine.cpp b/llvm/lib/Target/Alpha/AlphaTargetMachine.cpp index da113e90758..f5bd484b0cf 100644 --- a/llvm/lib/Target/Alpha/AlphaTargetMachine.cpp +++ b/llvm/lib/Target/Alpha/AlphaTargetMachine.cpp @@ -77,7 +77,8 @@ AlphaTargetMachine::AlphaTargetMachine(const Module &M, IntrinsicLowering *IL, /// bool AlphaTargetMachine::addPassesToEmitFile(PassManager &PM, std::ostream &Out, - CodeGenFileType FileType) { + CodeGenFileType FileType, + bool Fast) { if (FileType != TargetMachine::AssemblyFile) return true; if (EnableAlphaLSR) { diff --git a/llvm/lib/Target/Alpha/AlphaTargetMachine.h b/llvm/lib/Target/Alpha/AlphaTargetMachine.h index cc30bba6e33..20ae44c7e15 100644 --- a/llvm/lib/Target/Alpha/AlphaTargetMachine.h +++ b/llvm/lib/Target/Alpha/AlphaTargetMachine.h @@ -48,17 +48,11 @@ public: 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); static unsigned getModuleMatchQuality(const Module &M); }; |

