Rename NoDTC to NoTypeCheck. NFC.

Swift SVN r26973
This commit is contained in:
Erik Eckstein
2015-04-04 08:24:59 +00:00
parent 37a79ad87c
commit 78a3572fa4
10 changed files with 60 additions and 55 deletions

View File

@@ -45,7 +45,7 @@ bool swift::ArraySemanticsCall::isValidSignature() {
// All other calls can be consider valid.
default: break;
case ArrayCallKind::kArrayPropsIsNative:
case ArrayCallKind::kArrayPropsIsNativeNoDTC: {
case ArrayCallKind::kArrayPropsIsNativeNoTypeCheck: {
// @guaranteed/@owned Self
if (SemanticsCall->getNumArguments() != 1)
return false;
@@ -120,8 +120,8 @@ ArrayCallKind swift::ArraySemanticsCall::getKind() const {
auto Kind =
llvm::StringSwitch<ArrayCallKind>(F->getSemanticsString())
.Case("array.props.isNative", ArrayCallKind::kArrayPropsIsNative)
.Case("array.props.isNativeNoDTC",
ArrayCallKind::kArrayPropsIsNativeNoDTC)
.Case("array.props.isNativeNoTypeCheck",
ArrayCallKind::kArrayPropsIsNativeNoTypeCheck)
.Case("array.init", ArrayCallKind::kArrayInit)
.Case("array.uninitialized", ArrayCallKind::kArrayUninitialized)
.Case("array.check_subscript", ArrayCallKind::kCheckSubscript)
@@ -211,7 +211,7 @@ bool swift::ArraySemanticsCall::canHoist(SILInstruction *InsertBefore,
case ArrayCallKind::kCheckIndex:
case ArrayCallKind::kArrayPropsIsNative:
case ArrayCallKind::kArrayPropsIsNativeNoDTC:
case ArrayCallKind::kArrayPropsIsNativeNoTypeCheck:
case ArrayCallKind::kGetElementAddress:
return canHoistArrayArgument(SemanticsCall, getSelf(), InsertBefore, DT);
@@ -333,7 +333,7 @@ ApplyInst *swift::ArraySemanticsCall::hoistOrCopy(SILInstruction *InsertBefore,
auto Kind = getKind();
switch (Kind) {
case ArrayCallKind::kArrayPropsIsNative:
case ArrayCallKind::kArrayPropsIsNativeNoDTC: {
case ArrayCallKind::kArrayPropsIsNativeNoTypeCheck: {
assert(SemanticsCall->getNumArguments() == 1 &&
"Expect 'self' parameter only");