diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-10-29 15:51:42 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-10-29 15:51:42 +0000 |
commit | baafdeae0b1551c73f1a0052414530e061029e14 (patch) | |
tree | b87798408dc7683ca882ed725014552ba104058e /lib/Target/PowerPC/PPCSubtarget.h | |
parent | 19ad3e2fa7cee27dd712157f5515c178a27bde8b (diff) | |
download | llvm-baafdeae0b1551c73f1a0052414530e061029e14.tar.gz llvm-baafdeae0b1551c73f1a0052414530e061029e14.tar.bz2 llvm-baafdeae0b1551c73f1a0052414530e061029e14.tar.xz |
PPCSubtarget.h: Add explicit braces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r-- | lib/Target/PowerPC/PPCSubtarget.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.h b/lib/Target/PowerPC/PPCSubtarget.h index 9e9b82f691..b9e22f43c3 100644 --- a/lib/Target/PowerPC/PPCSubtarget.h +++ b/lib/Target/PowerPC/PPCSubtarget.h @@ -113,11 +113,12 @@ public: const char *getDataLayoutString() const { // Note, the alignment values for f64 and i64 on ppc64 in Darwin // documentation are wrong; these are correct (i.e. "what gcc does"). - if (isPPC64() && isSVR4ABI()) + if (isPPC64() && isSVR4ABI()) { if (TargetTriple.getOS() == llvm::Triple::FreeBSD) return "E-p:64:64-f64:64:64-i64:64:64-f128:64:64-v128:128:128-n32:64"; else return "E-p:64:64-f64:64:64-i64:64:64-f128:128:128-v128:128:128-n32:64"; + } return isPPC64() ? "E-p:64:64-f64:64:64-i64:64:64-f128:64:128-n32:64" : "E-p:32:32-f64:64:64-i64:64:64-f128:64:128-n32"; |