aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86TargetMachine.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-11-28 09:29:37 +0000
committerDuncan Sands <baldrick@free.fr>2008-11-28 09:29:37 +0000
commitf9a67a894366482cb2aa70a0e4dfeb5d76f91988 (patch)
treebb30df4c67b68f67bcb8b9715bb0162246197871 /lib/Target/X86/X86TargetMachine.cpp
parent7605730ba8eaf248a8285bb2055e131f13c15b63 (diff)
downloadexternal_llvm-f9a67a894366482cb2aa70a0e4dfeb5d76f91988.zip
external_llvm-f9a67a894366482cb2aa70a0e4dfeb5d76f91988.tar.gz
external_llvm-f9a67a894366482cb2aa70a0e4dfeb5d76f91988.tar.bz2
Fix build with gcc-4.4: it doesn't like PICStyle
being both a namespace and a variable name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60208 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r--lib/Target/X86/X86TargetMachine.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp
index 1e90c0f..ce4b090 100644
--- a/lib/Target/X86/X86TargetMachine.cpp
+++ b/lib/Target/X86/X86TargetMachine.cpp
@@ -162,17 +162,17 @@ X86TargetMachine::X86TargetMachine(const Module &M, const std::string &FS,
}
if (Subtarget.isTargetCygMing())
- Subtarget.setPICStyle(PICStyle::WinPIC);
+ Subtarget.setPICStyle(PICStyles::WinPIC);
else if (Subtarget.isTargetDarwin()) {
if (Subtarget.is64Bit())
- Subtarget.setPICStyle(PICStyle::RIPRel);
+ Subtarget.setPICStyle(PICStyles::RIPRel);
else
- Subtarget.setPICStyle(PICStyle::Stub);
+ Subtarget.setPICStyle(PICStyles::Stub);
} else if (Subtarget.isTargetELF()) {
if (Subtarget.is64Bit())
- Subtarget.setPICStyle(PICStyle::RIPRel);
+ Subtarget.setPICStyle(PICStyles::RIPRel);
else
- Subtarget.setPICStyle(PICStyle::GOT);
+ Subtarget.setPICStyle(PICStyles::GOT);
}
}