Skip to content

Commit 2a9e7be

Browse files
committed
---
yaml --- r: 345471 b: refs/heads/master c: daeac07 h: refs/heads/master i: 345469: 732a15b 345467: 8593ad0 345463: 5dc7bc2 345455: 700a8be 345439: 8b16ccb 345407: 38fbbe9 345343: 1a56c79
1 parent 7c3fee7 commit 2a9e7be

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: c48d98ee9f7cc1e6116a86fbe98e00be0de72e49
2+
refs/heads/master: daeac073a25e053344cffcc2ba6b7fbef3f4e8da
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
361361
StringRef File = llvm::sys::path::filename(Filename);
362362
llvm::SmallString<512> Path(Filename);
363363
llvm::sys::path::remove_filename(Path);
364+
llvm::sys::path::remove_dots(Path);
364365
llvm::DIFile *F = DBuilder.createFile(DebugPrefixMap.remapPath(File),
365366
DebugPrefixMap.remapPath(Path));
366367

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+

0 commit comments

Comments
 (0)