forked from OSchip/llvm-project
parent
e353a7257e
commit
273dbc602f
|
@ -1748,15 +1748,15 @@ static const unsigned AMDGPUAddrSpaceMap[] = {
|
|||
// If you edit the description strings, make sure you update
|
||||
// getPointerWidthV().
|
||||
|
||||
static const char *DataLayoutStringR600 =
|
||||
static const char *const DataLayoutStringR600 =
|
||||
"e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128"
|
||||
"-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64";
|
||||
|
||||
static const char *DataLayoutStringR600DoubleOps =
|
||||
static const char *const DataLayoutStringR600DoubleOps =
|
||||
"e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128"
|
||||
"-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64";
|
||||
|
||||
static const char *DataLayoutStringSI =
|
||||
static const char *const DataLayoutStringSI =
|
||||
"e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-p24:64:64"
|
||||
"-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128"
|
||||
"-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64";
|
||||
|
|
|
@ -2130,7 +2130,7 @@ enum {
|
|||
Intrinsic::LLVMIntrinsic, Intrinsic::AltLLVMIntrinsic, \
|
||||
#NameBase, TypeModifier }
|
||||
|
||||
static NeonIntrinsicInfo ARMSIMDIntrinsicMap [] = {
|
||||
static const NeonIntrinsicInfo ARMSIMDIntrinsicMap [] = {
|
||||
NEONMAP2(vabd_v, arm_neon_vabdu, arm_neon_vabds, Add1ArgType | UnsignedAlts),
|
||||
NEONMAP2(vabdq_v, arm_neon_vabdu, arm_neon_vabds, Add1ArgType | UnsignedAlts),
|
||||
NEONMAP1(vabs_v, arm_neon_vabs, 0),
|
||||
|
@ -2347,7 +2347,7 @@ static NeonIntrinsicInfo ARMSIMDIntrinsicMap [] = {
|
|||
NEONMAP0(vzipq_v)
|
||||
};
|
||||
|
||||
static NeonIntrinsicInfo AArch64SIMDIntrinsicMap[] = {
|
||||
static const NeonIntrinsicInfo AArch64SIMDIntrinsicMap[] = {
|
||||
NEONMAP1(vabs_v, aarch64_neon_abs, 0),
|
||||
NEONMAP1(vabsq_v, aarch64_neon_abs, 0),
|
||||
NEONMAP0(vaddhn_v),
|
||||
|
@ -2462,7 +2462,7 @@ static NeonIntrinsicInfo AArch64SIMDIntrinsicMap[] = {
|
|||
NEONMAP0(vtstq_v),
|
||||
};
|
||||
|
||||
static NeonIntrinsicInfo AArch64SISDIntrinsicMap[] = {
|
||||
static const NeonIntrinsicInfo AArch64SISDIntrinsicMap[] = {
|
||||
NEONMAP1(vabdd_f64, aarch64_sisd_fabd, Add1ArgType),
|
||||
NEONMAP1(vabds_f32, aarch64_sisd_fabd, Add1ArgType),
|
||||
NEONMAP1(vabsd_s64, aarch64_neon_abs, Add1ArgType),
|
||||
|
|
|
@ -7069,7 +7069,7 @@ static bool appendEnumType(SmallStringEnc &Enc, const EnumType *ET,
|
|||
/// This is done prior to appending the type's encoding.
|
||||
static void appendQualifier(SmallStringEnc &Enc, QualType QT) {
|
||||
// Qualifiers are emitted in alphabetical order.
|
||||
static const char *Table[] = {"","c:","r:","cr:","v:","cv:","rv:","crv:"};
|
||||
static const char *const Table[]={"","c:","r:","cr:","v:","cv:","rv:","crv:"};
|
||||
int Lookup = 0;
|
||||
if (QT.isConstQualified())
|
||||
Lookup += 1<<0;
|
||||
|
|
|
@ -9093,7 +9093,7 @@ void visualstudio::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
CmdArgs.push_back(Args.MakeArgString("-debug"));
|
||||
CmdArgs.push_back(Args.MakeArgString("-incremental:no"));
|
||||
if (Args.hasArg(options::OPT__SLASH_MD, options::OPT__SLASH_MDd)) {
|
||||
static const char *CompilerRTComponents[] = {
|
||||
static const char *const CompilerRTComponents[] = {
|
||||
"asan_dynamic", "asan_dynamic_runtime_thunk",
|
||||
};
|
||||
for (const auto &Component : CompilerRTComponents)
|
||||
|
@ -9104,7 +9104,7 @@ void visualstudio::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
} else if (DLL) {
|
||||
CmdArgs.push_back(getCompilerRTArgString(TC, Args, "asan_dll_thunk"));
|
||||
} else {
|
||||
static const char *CompilerRTComponents[] = {
|
||||
static const char *const CompilerRTComponents[] = {
|
||||
"asan", "asan_cxx",
|
||||
};
|
||||
for (const auto &Component : CompilerRTComponents)
|
||||
|
|
Loading…
Reference in New Issue