Fix whitespace, 80-column violations, embedded tabs for the

TargetInfo class.

llvm-svn: 249872
This commit is contained in:
Eric Christopher
2015-10-09 18:39:59 +00:00
parent 8c47b427f9
commit b093d69062
3 changed files with 36 additions and 31 deletions

View File

@@ -316,7 +316,9 @@ public:
unsigned getLongLongAlign() const { return LongLongAlign; } unsigned getLongLongAlign() const { return LongLongAlign; }
/// \brief Determine whether the __int128 type is supported on this target. /// \brief Determine whether the __int128 type is supported on this target.
virtual bool hasInt128Type() const { return getPointerWidth(0) >= 64; } // FIXME virtual bool hasInt128Type() const {
return getPointerWidth(0) >= 64;
} // FIXME
/// \brief Return the alignment that is suitable for storing any /// \brief Return the alignment that is suitable for storing any
/// object with a fundamental alignment requirement. /// object with a fundamental alignment requirement.

View File

@@ -3717,9 +3717,9 @@ public:
}; };
static void addCygMingDefines(const LangOptions &Opts, MacroBuilder &Builder) { static void addCygMingDefines(const LangOptions &Opts, MacroBuilder &Builder) {
// Mingw and cygwin define __declspec(a) to __attribute__((a)). Clang supports // Mingw and cygwin define __declspec(a) to __attribute__((a)). Clang
// __declspec natively under -fms-extensions, but we define a no-op __declspec // supports __declspec natively under -fms-extensions, but we define a no-op
// macro anyway for pre-processor compatibility. // __declspec macro anyway for pre-processor compatibility.
if (Opts.MicrosoftExt) if (Opts.MicrosoftExt)
Builder.defineMacro("__declspec", "__declspec"); Builder.defineMacro("__declspec", "__declspec");
else else
@@ -4685,7 +4685,8 @@ public:
Builder.defineMacro("__ARM_FEATURE_SIMD32", "1"); Builder.defineMacro("__ARM_FEATURE_SIMD32", "1");
// ACLE 6.4.10 Hardware Integer Divide // ACLE 6.4.10 Hardware Integer Divide
if (((HWDiv & HWDivThumb) && isThumb()) || ((HWDiv & HWDivARM) && !isThumb())) { if (((HWDiv & HWDivThumb) && isThumb()) ||
((HWDiv & HWDivARM) && !isThumb())) {
Builder.defineMacro("__ARM_FEATURE_IDIV", "1"); Builder.defineMacro("__ARM_FEATURE_IDIV", "1");
Builder.defineMacro("__ARM_ARCH_EXT_IDIV__", "1"); Builder.defineMacro("__ARM_ARCH_EXT_IDIV__", "1");
} }
@@ -4712,7 +4713,8 @@ public:
Builder.defineMacro("__ARM_NEON__"); Builder.defineMacro("__ARM_NEON__");
// current AArch32 NEON implementations do not support double-precision // current AArch32 NEON implementations do not support double-precision
// floating-point even when it is present in VFP. // floating-point even when it is present in VFP.
Builder.defineMacro("__ARM_NEON_FP", "0x" + llvm::utohexstr(HW_FP & ~HW_FP_DP)); Builder.defineMacro("__ARM_NEON_FP",
"0x" + llvm::utohexstr(HW_FP & ~HW_FP_DP));
} }
Builder.defineMacro("__ARM_SIZEOF_WCHAR_T", Builder.defineMacro("__ARM_SIZEOF_WCHAR_T",
@@ -5879,7 +5881,8 @@ class SystemZTargetInfo : public TargetInfo {
public: public:
SystemZTargetInfo(const llvm::Triple &Triple) SystemZTargetInfo(const llvm::Triple &Triple)
: TargetInfo(Triple), CPU("z10"), HasTransactionalExecution(false), HasVector(false) { : TargetInfo(Triple), CPU("z10"), HasTransactionalExecution(false),
HasVector(false) {
IntMaxType = SignedLong; IntMaxType = SignedLong;
Int64Type = SignedLong; Int64Type = SignedLong;
TLSSupported = true; TLSSupported = true;