File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ class LLVM_LIBRARY_VISIBILITY AIX : public ToolChain {
74
74
75
75
RuntimeLibType GetDefaultRuntimeLibType () const override ;
76
76
77
+ // Set default DWARF version to 3 for now as latest AIX OS supports version 3.
78
+ unsigned GetDefaultDwarfVersion () const override { return 3 ; }
79
+
77
80
protected:
78
81
Tool *buildAssembler () const override ;
79
82
Tool *buildLinker () const override ;
Original file line number Diff line number Diff line change 32
32
// Explicitly request both.
33
33
// RUN: %clang -target i686-pc-windows-msvc -gdwarf -gcodeview -S -emit-llvm -o - %s \
34
34
// RUN: | FileCheck %s --check-prefixes=VER4,CODEVIEW
35
+ // RUN: %clang -target powerpc-ibm-aix-xcoff -g -S -emit-llvm -o - %s | \
36
+ // RUN: FileCheck %s --check-prefix=VER3
37
+ // RUN: %clang -target powerpc-ibm-aix-xcoff -gdwarf-2 -S -emit-llvm -o - %s | \
38
+ // RUN: FileCheck %s --check-prefix=VER2
39
+ // RUN: %clang -target powerpc-ibm-aix-xcoff -gdwarf-3 -S -emit-llvm -o - %s | \
40
+ // RUN: FileCheck %s --check-prefix=VER3
41
+ // RUN: %clang -target powerpc-ibm-aix-xcoff -gdwarf-4 -S -emit-llvm -o - %s | \
42
+ // RUN: FileCheck %s --check-prefix=VER4
43
+ // RUN: %clang -target powerpc-ibm-aix-xcoff -gdwarf-5 -S -emit-llvm -o - %s | \
44
+ // RUN: FileCheck %s --check-prefix=VER5
45
+
35
46
int main (void ) {
36
47
return 0 ;
37
48
}
You can’t perform that action at this time.
0 commit comments