aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCSubtarget.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-02-15 18:40:53 +0000
committerDale Johannesen <dalej@apple.com>2008-02-15 18:40:53 +0000
commit3b407444c9a45feb74b70b43138580d5f0299597 (patch)
treede941f1a98877ad81302133dfb98c89534abb744 /lib/Target/PowerPC/PPCSubtarget.cpp
parentc8d044e4f779fdcfc5e7d592927740fd8f672a70 (diff)
Cosmetics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47168 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCSubtarget.cpp')
-rw-r--r--lib/Target/PowerPC/PPCSubtarget.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.cpp b/lib/Target/PowerPC/PPCSubtarget.cpp
index 10373cb427..6cf6ca6524 100644
--- a/lib/Target/PowerPC/PPCSubtarget.cpp
+++ b/lib/Target/PowerPC/PPCSubtarget.cpp
@@ -82,18 +82,15 @@ PPCSubtarget::PPCSubtarget(const TargetMachine &tm, const Module &M,
// If we are generating code for ppc64, verify that options make sense.
if (is64Bit) {
- if (!has64BitSupport()) {
- Has64BitSupport = true;
- }
+ Has64BitSupport = true;
// Silently force 64-bit register use on ppc64.
Use64BitRegs = true;
}
// If the user requested use of 64-bit regs, but the cpu selected doesn't
- // support it, warn and ignore.
- if (use64BitRegs() && !has64BitSupport()) {
+ // support it, ignore.
+ if (use64BitRegs() && !has64BitSupport())
Use64BitRegs = false;
- }
// Set the boolean corresponding to the current target triple, or the default
// if one cannot be determined, to true.