summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/MSP430
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-03-09 20:23:14 +0000
committerReid Kleckner <reid@kleckner.net>2015-03-09 20:23:14 +0000
commit294fa7aa9dedc25450bfba4a9aff6d267c9d19b6 (patch)
treee3a72d826d044345dbcf7f6a06003d8b0631844e /llvm/lib/Target/MSP430
parent7bd1f7cb585fc66c65120d114abc02b91156398f (diff)
downloadbcm5719-llvm-294fa7aa9dedc25450bfba4a9aff6d267c9d19b6.tar.gz
bcm5719-llvm-294fa7aa9dedc25450bfba4a9aff6d267c9d19b6.zip
TableGen: Use 'enum : uint64_t' for feature flags to fix -Wmicrosoft
clang-cl would warn that this value is not representable in 'int': enum { FeatureX = 1ULL << 31 }; All MS enums are 'ints' unless otherwise specified, so we have to use an explicit type. The AMDGPU target just hit 32 features, triggering this warning. Now that we have C++11 strong enum types, we can also eliminate the 'const uint64_t' codepath from tablegen and just use 'enum : uint64_t'. llvm-svn: 231697
Diffstat (limited to 'llvm/lib/Target/MSP430')
-rw-r--r--llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCTargetDesc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCTargetDesc.h b/llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCTargetDesc.h
index 586f5d991c9..241f1d6f9c0 100644
--- a/llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCTargetDesc.h
+++ b/llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCTargetDesc.h
@@ -14,6 +14,8 @@
#ifndef LLVM_LIB_TARGET_MSP430_MCTARGETDESC_MSP430MCTARGETDESC_H
#define LLVM_LIB_TARGET_MSP430_MCTARGETDESC_MSP430MCTARGETDESC_H
+#include "llvm/Support/DataTypes.h"
+
namespace llvm {
class Target;
OpenPOWER on IntegriCloud