File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ using namespace swift;
12
12
13
13
static std::string nameForMetadata (const Metadata *md)
14
14
{
15
- Demangle::StackAllocatedDemangler<1024 > dem;
15
+ Demangle::__runtime:: StackAllocatedDemangler<1024 > dem;
16
16
auto nodeTree = _swift_buildDemanglingForMetadata (md, dem);
17
17
if (!nodeTree)
18
18
return " <unknown>" ;
19
19
20
- std::string result = Demangle::nodeToString (nodeTree);
20
+ std::string result = Demangle::__runtime:: nodeToString (nodeTree);
21
21
return result;
22
22
}
23
23
@@ -26,11 +26,11 @@ extern "C" SWIFT_CC(swift) void roundTripType(const Metadata *md) {
26
26
const std::string mdName = ::nameForMetadata (md);
27
27
28
28
// Convert it to a Node tree
29
- Demangle::StackAllocatedDemangler<1024 > dem;
29
+ Demangle::__runtime:: StackAllocatedDemangler<1024 > dem;
30
30
auto nodeTree = _swift_buildDemanglingForMetadata (md, dem);
31
31
32
32
// Mangle that
33
- std::string mangledName = Demangle::mangleNode (nodeTree);
33
+ std::string mangledName = Demangle::__runtime:: mangleNode (nodeTree);
34
34
35
35
// Look up the result
36
36
auto result = swift_getTypeByMangledName (MetadataState::Abstract,
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
- // RUN: %target-clang -std=c++14 %target-rtti-opt %target-pic-opt %target-msvc-runtime-opt -g -c %S/Inputs/RoundTrip/RoundTrip.cpp -I%swift_obj_root/include -I%swift_src_root/include -I%swift_src_root/stdlib/include -I%swift_src_root/stdlib/public/runtime -I%llvm_src_root/include -I%llvm_obj_root/include -o %t/RoundTrip.o
2
+ // RUN: %target-clang -std=c++14 %target-rtti-opt %target-pic-opt %target-msvc-runtime-opt -DSWIFT_INLINE_NAMESPACE=__runtime - g -c %S/Inputs/RoundTrip/RoundTrip.cpp -I%swift_obj_root/include -I%swift_src_root/include -I%swift_src_root/stdlib/include -I%swift_src_root/stdlib/public/runtime -I%llvm_src_root/include -I%llvm_obj_root/include -o %t/RoundTrip.o
3
3
// RUN: %target-build-swift -g -static -emit-module-path %t/RoundTrip.swiftmodule -emit-module -emit-library -module-name RoundTrip -o %t/%target-static-library-name(RoundTrip) %S/Inputs/RoundTrip/RoundTrip.swift %t/RoundTrip.o
4
4
// RUN: echo "// AUTOGENERATED" > %t/all-tests.swift
5
5
// RUN: for module in %S/Inputs/testcases/*.swift; do modname=$(basename $module .swift); echo "import $modname" >> %t/all-tests.swift; done
6
6
// RUN: echo "func runAllTests() throws {" >> %t/all-tests.swift
7
7
// RUN: for module in %S/Inputs/testcases/*.swift; do modname=$(basename $module .swift); %target-build-swift -g -static -emit-module-path %t/$modname.swiftmodule -emit-module -emit-library -module-name $modname -o %t/%target-static-library-name($modname) -I%t -L%t $module -lRoundTrip; echo " print(\"--- $modname\")" >> %t/all-tests.swift; echo " $modname.test()" >> %t/all-tests.swift; echo " print(\"\")" >> %t/all-tests.swift; echo "-l$modname" >> %t/link.txt; done
8
8
// RUN: echo "}" >> %t/all-tests.swift
9
- // RUN: %target-build-swift -g -I%t -o %t/round-trip %s %t/all-tests.swift -L%t -L%swift_obj_root/lib -L%swift_obj_root/lib/swift % target-cxx-lib $(cat %t/link.txt) -lRoundTrip -lswiftDemangling -lswiftReflection
9
+ // RUN: %target-build-swift -g -I%t -o %t/round-trip %s %t/all-tests.swift -L%t % target-cxx-lib $(cat %t/link.txt) -lRoundTrip -lswiftReflection
10
10
// RUN: %target-codesign %t/round-trip
11
11
// RUN: %target-run %t/round-trip | %FileCheck %s
12
12
You can’t perform that action at this time.
0 commit comments