Changes from Nick Lewycky with a simplified PPCTargetAsmInfo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32735 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Laskey
2006-12-21 20:26:09 +00:00
parent 787bfe654c
commit bf1118285c
6 changed files with 277 additions and 20 deletions

View File

@@ -28,7 +28,10 @@ namespace {
}
const TargetAsmInfo *PPCTargetMachine::createTargetAsmInfo() const {
return new DarwinTargetAsmInfo(*this);
if (Subtarget.isDarwin())
return new DarwinTargetAsmInfo(*this);
else
return new LinuxTargetAsmInfo(*this);
}
unsigned PPC32TargetMachine::getJITMatchQuality() {
@@ -90,7 +93,7 @@ PPCTargetMachine::PPCTargetMachine(const Module &M, const std::string &FS,
if (Subtarget.isDarwin())
setRelocationModel(Reloc::DynamicNoPIC);
else
setRelocationModel(Reloc::PIC_);
setRelocationModel(Reloc::Static);
}
PPC32TargetMachine::PPC32TargetMachine(const Module &M, const std::string &FS)