| Zachary Turner | 99f0215 | 2015-02-18 19:32:05 +0000 | [diff] [blame] | 1 | ; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 -o - -O0 < %s | llvm-mc -triple=i686-pc-win32 -filetype=obj | llvm-readobj -s -sr -codeview -section-symbols | FileCheck %s |
| Timur Iskhodzhanov | 0e76a16 | 2014-11-12 20:21:20 +0000 | [diff] [blame] | 2 | |
| 3 | ; This LL file was generated by running clang on the following code: |
| 4 | ; D:\src.cpp: |
| 5 | ; 1 namespace foo { |
| 6 | ; 2 int bar(int x) { |
| 7 | ; 3 return x * 2; |
| 8 | ; 4 } |
| 9 | ; 5 } |
| 10 | |
| 11 | ; CHECK: ProcStart { |
| 12 | ; FIXME: The display name should in fact be "foo::bar", see PR21528 |
| 13 | ; CHECK-NEXT: DisplayName: ?bar@foo@@YAHH@Z |
| 14 | ; CHECK-NEXT: Section: ?bar@foo@@YAHH@Z |
| 15 | |
| 16 | ; Function Attrs: nounwind |
| 17 | define i32 @"\01?bar@foo@@YAHH@Z"(i32 %x) #0 { |
| 18 | entry: |
| 19 | %x.addr = alloca i32, align 4 |
| 20 | store i32 %x, i32* %x.addr, align 4 |
| David Blaikie | a79ac14 | 2015-02-27 21:17:42 +0000 | [diff] [blame] | 21 | %0 = load i32, i32* %x.addr, align 4, !dbg !11 |
| Timur Iskhodzhanov | 0e76a16 | 2014-11-12 20:21:20 +0000 | [diff] [blame] | 22 | %mul = mul nsw i32 %0, 2, !dbg !11 |
| 23 | ret i32 %mul, !dbg !11 |
| 24 | } |
| 25 | |
| 26 | attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } |
| 27 | |
| 28 | !llvm.dbg.cu = !{!0} |
| 29 | !llvm.module.flags = !{!8, !9} |
| 30 | !llvm.ident = !{!10} |
| 31 | |
| Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame^] | 32 | !0 = !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.6.0 ", isOptimized: false, emissionKind: 2, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2) |
| 33 | !1 = !DIFile(filename: "<stdin>", directory: "D:\5C") |
| Duncan P. N. Exon Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 34 | !2 = !{} |
| 35 | !3 = !{!4} |
| Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame^] | 36 | !4 = !DISubprogram(name: "bar", line: 2, isLocal: false, isDefinition: true, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 2, file: !5, scope: !6, type: !7, function: i32 (i32)* @"\01?bar@foo@@YAHH@Z", variables: !2) |
| 37 | !5 = !DIFile(filename: "src.cpp", directory: "D:\5C") |
| 38 | !6 = !DIFile(filename: "src.cpp", directory: "D:C") |
| 39 | !7 = !DISubroutineType(types: !2) |
| Duncan P. N. Exon Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 40 | !8 = !{i32 2, !"Dwarf Version", i32 4} |
| Duncan P. N. Exon Smith | e274180 | 2015-03-03 17:24:31 +0000 | [diff] [blame] | 41 | !9 = !{i32 2, !"Debug Info Version", i32 3} |
| Duncan P. N. Exon Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 42 | !10 = !{!"clang version 3.6.0 "} |
| Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame^] | 43 | !11 = !DILocation(line: 3, scope: !4) |