[PlaygroundTransform] Replace "$builtin" with "__builtin".

Currently, the playground transform requires the use of dollar-identifiers as the functions are prefixed with "$builtin".
This commit removes that requirement by replacing "$builtin" with "__builtin".
This aligns with the PC macro.

This addresses <rdar://problem/36031860>.
This commit is contained in:
Connor Wakamo
2017-12-18 10:32:09 -08:00
parent 99cc3223e6
commit 451778591e
35 changed files with 223 additions and 223 deletions

View File

@@ -1,8 +1,8 @@
// RUN: %empty-directory(%t)
// RUN: cp %s %t/main.swift
// RUN: %target-build-swift -Xfrontend -playground -Xfrontend -debugger-support -o %t/main %S/Inputs/PlaygroundsRuntime.swift %t/main.swift
// RUN: %target-build-swift -Xfrontend -playground -o %t/main %S/Inputs/PlaygroundsRuntime.swift %t/main.swift
// RUN: %target-run %t/main | %FileCheck %s
// RUN: %target-build-swift -Xfrontend -pc-macro -Xfrontend -playground -Xfrontend -debugger-support -o %t/main %S/Inputs/PlaygroundsRuntime.swift %S/Inputs/SilentPCMacroRuntime.swift %t/main.swift
// RUN: %target-build-swift -Xfrontend -pc-macro -Xfrontend -playground -o %t/main %S/Inputs/PlaygroundsRuntime.swift %S/Inputs/SilentPCMacroRuntime.swift %t/main.swift
// RUN: %target-run %t/main | %FileCheck %s
// REQUIRES: executable_test
@@ -15,5 +15,5 @@ struct S {
}
var s = [S()]
s[0].a.append(3)
// CHECK: [{{.*}}] $builtin_log[s='[main.S(a: [])]']
// CHECK-NEXT: [{{.*}}] $builtin_log[a='[3])]']
// CHECK: [{{.*}}] __builtin_log[s='[main.S(a: [])]']
// CHECK-NEXT: [{{.*}}] __builtin_log[a='[3])]']