[dsymutil] Put Swift interface files into a per-arch subdirectory.
authorAdrian Prantl <aprantl@apple.com>
Tue, 23 Apr 2019 16:42:35 +0000 (16:42 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 23 Apr 2019 16:42:35 +0000 (16:42 +0000)
This was meant to be part of the original commit r358921, but somehow
got lost.

<rdar://problem/49751748>

llvm-svn: 359010

llvm/test/tools/dsymutil/X86/swift-interface.test
llvm/tools/dsymutil/DwarfLinker.cpp

index 4bfd2b8..696441f 100644 (file)
@@ -8,7 +8,7 @@
 # RUN: echo "// module Foo" >%t.dir/Foo/x86_64.swiftinterface
 # RUN: dsymutil -oso-prepend-path %t.dir -y %s \
 # RUN:    -o %t.dir/swift-interface.dSYM
-# RUN: cat %t.dir/swift-interface.dSYM/Contents/Resources/Swift/Foo.swiftinterface \
+# RUN: cat %t.dir/swift-interface.dSYM/Contents/Resources/Swift/x86_64/Foo.swiftinterface \
 # RUN:   | FileCheck %s --check-prefix=INTERFACE
 
 # WARNINGS: cannot copy parseable Swift interface
index e97d502..c8e70ee 100644 (file)
@@ -2497,7 +2497,7 @@ static Error copySwiftInterfaces(
   std::error_code EC;
   SmallString<128> InputPath;
   SmallString<128> Path;
-  sys::path::append(Path, *Options.ResourceDir, "Swift");
+  sys::path::append(Path, *Options.ResourceDir, "Swift", Architecture);
   if ((EC = sys::fs::create_directories(Path.str(), true,
                                         sys::fs::perms::all_all)))
     return make_error<StringError>(