File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -361,6 +361,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
361
361
StringRef File = llvm::sys::path::filename (Filename);
362
362
llvm::SmallString<512 > Path (Filename);
363
363
llvm::sys::path::remove_filename (Path);
364
+ llvm::sys::path::remove_dots (Path);
364
365
llvm::DIFile *F = DBuilder.createFile (DebugPrefixMap.remapPath (File),
365
366
DebugPrefixMap.remapPath (Path));
366
367
Original file line number Diff line number Diff line change
1
+ // REQUIRES: objc_interop
2
+ // RUN: rm -rf %t.cache
3
+ // RUN: %target-swift-frontend -emit-ir %s -g -I %S/Inputs -o - \
4
+ // RUN: -module-cache-path %t.cache | %FileCheck %s --check-prefix=FIRST
5
+ // RUN: %target-swift-frontend -emit-ir %s -g -I %S/Inputs -o - \
6
+ // RUN: -module-cache-path %t.cache | %FileCheck %s --check-prefix=CACHED
7
+
8
+ // FIRST: !DIFile(filename: "NSObject.h", directory: {{.*}}/include/objc")
9
+ // CACHED: !DIFile(filename: "NSObject.h", directory: {{.*}}/include/objc")
10
+
11
+ import ObjectiveC
12
+
13
+ extension NSObject : CVarArg {
14
+ /// Transform `self` into a series of machine words that can be
15
+ /// appropriately interpreted by C varargs
16
+ public var _cVarArgEncoding : [ Int ] {
17
+ _autorelease ( self )
18
+ return _encodeBitsAsWords ( self )
19
+ }
20
+ }
21
+
You can’t perform that action at this time.
0 commit comments