File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: c48d98ee9f7cc1e6116a86fbe98e00be0de72e49
2
+ refs/heads/master: daeac073a25e053344cffcc2ba6b7fbef3f4e8da
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
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