[llvm-commits] [llvm] r166932 - /llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h
NAKAMURA Takumi
geek4civic at gmail.com
Mon Oct 29 08:51:42 PDT 2012
Author: chapuni
Date: Mon Oct 29 10:51:42 2012
New Revision: 166932
URL: http://llvm.org/viewvc/llvm-project?rev=166932&view=rev
Log:
PPCSubtarget.h: Add explicit braces.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h
Modified: llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h?rev=166932&r1=166931&r2=166932&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h Mon Oct 29 10:51:42 2012
@@ -113,11 +113,12 @@
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";
More information about the llvm-commits
mailing list