diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-11-16 08:38:26 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-11-16 08:38:26 +0000 |
commit | ecb2908bf98749531c148a3d5f2271159f4f66e4 (patch) | |
tree | 5c72fb3496e8ad7c9852dde525359f342b87a594 /llvm/lib/Target/CppBackend/CPPTargetMachine.h | |
parent | cca9aa58ca1594c3c74ee6c2055fbe23a6febdc7 (diff) | |
download | bcm5719-llvm-ecb2908bf98749531c148a3d5f2271159f4f66e4.tar.gz bcm5719-llvm-ecb2908bf98749531c148a3d5f2271159f4f66e4.zip |
Sink codegen optimization level into MCCodeGenInfo along side relocation model
and code model. This eliminates the need to pass OptLevel flag all over the
place and makes it possible for any codegen pass to use this information.
llvm-svn: 144788
Diffstat (limited to 'llvm/lib/Target/CppBackend/CPPTargetMachine.h')
-rw-r--r-- | llvm/lib/Target/CppBackend/CPPTargetMachine.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPTargetMachine.h b/llvm/lib/Target/CppBackend/CPPTargetMachine.h index 287e5372713..a3613b40bd3 100644 --- a/llvm/lib/Target/CppBackend/CPPTargetMachine.h +++ b/llvm/lib/Target/CppBackend/CPPTargetMachine.h @@ -24,13 +24,13 @@ class formatted_raw_ostream; struct CPPTargetMachine : public TargetMachine { CPPTargetMachine(const Target &T, StringRef TT, StringRef CPU, StringRef FS, - Reloc::Model RM, CodeModel::Model CM) + Reloc::Model RM, CodeModel::Model CM, + CodeGenOpt::Level OL) : TargetMachine(T, TT, CPU, FS) {} virtual bool addPassesToEmitFile(PassManagerBase &PM, formatted_raw_ostream &Out, CodeGenFileType FileType, - CodeGenOpt::Level OptLevel, bool DisableVerify); virtual const TargetData *getTargetData() const { return 0; } |