summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CellSPU/MCTargetDesc/SPUMCTargetDesc.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-11-16 08:38:26 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-11-16 08:38:26 +0000
commitecb2908bf98749531c148a3d5f2271159f4f66e4 (patch)
tree5c72fb3496e8ad7c9852dde525359f342b87a594 /llvm/lib/Target/CellSPU/MCTargetDesc/SPUMCTargetDesc.cpp
parentcca9aa58ca1594c3c74ee6c2055fbe23a6febdc7 (diff)
downloadbcm5719-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/CellSPU/MCTargetDesc/SPUMCTargetDesc.cpp')
-rw-r--r--llvm/lib/Target/CellSPU/MCTargetDesc/SPUMCTargetDesc.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/CellSPU/MCTargetDesc/SPUMCTargetDesc.cpp b/llvm/lib/Target/CellSPU/MCTargetDesc/SPUMCTargetDesc.cpp
index d5af2a88aed..5ce14c99cd1 100644
--- a/llvm/lib/Target/CellSPU/MCTargetDesc/SPUMCTargetDesc.cpp
+++ b/llvm/lib/Target/CellSPU/MCTargetDesc/SPUMCTargetDesc.cpp
@@ -62,11 +62,12 @@ static MCAsmInfo *createSPUMCAsmInfo(const Target &T, StringRef TT) {
}
static MCCodeGenInfo *createSPUMCCodeGenInfo(StringRef TT, Reloc::Model RM,
- CodeModel::Model CM) {
+ CodeModel::Model CM,
+ CodeGenOpt::Level OL) {
MCCodeGenInfo *X = new MCCodeGenInfo();
// For the time being, use static relocations, since there's really no
// support for PIC yet.
- X->InitMCCodeGenInfo(Reloc::Static, CM);
+ X->InitMCCodeGenInfo(Reloc::Static, CM, OL);
return X;
}
OpenPOWER on IntegriCloud