This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGafa76fe67a42: [XCOFF][DWARF] set default DWARF version to 3. (authored by shchenz).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D98010/new/ https://reviews.llvm.org/D98010 Files: clang/lib/Driver/ToolChains/AIX.h clang/test/CodeGen/dwarf-version.c Index: clang/test/CodeGen/dwarf-version.c =================================================================== --- clang/test/CodeGen/dwarf-version.c +++ clang/test/CodeGen/dwarf-version.c @@ -32,6 +32,17 @@ // Explicitly request both. // RUN: %clang -target i686-pc-windows-msvc -gdwarf -gcodeview -S -emit-llvm -o - %s \ // RUN: | FileCheck %s --check-prefixes=VER4,CODEVIEW +// RUN: %clang -target powerpc-ibm-aix-xcoff -g -S -emit-llvm -o - %s | \ +// RUN: FileCheck %s --check-prefix=VER3 +// RUN: %clang -target powerpc-ibm-aix-xcoff -gdwarf-2 -S -emit-llvm -o - %s | \ +// RUN: FileCheck %s --check-prefix=VER2 +// RUN: %clang -target powerpc-ibm-aix-xcoff -gdwarf-3 -S -emit-llvm -o - %s | \ +// RUN: FileCheck %s --check-prefix=VER3 +// RUN: %clang -target powerpc-ibm-aix-xcoff -gdwarf-4 -S -emit-llvm -o - %s | \ +// RUN: FileCheck %s --check-prefix=VER4 +// RUN: %clang -target powerpc-ibm-aix-xcoff -gdwarf-5 -S -emit-llvm -o - %s | \ +// RUN: FileCheck %s --check-prefix=VER5 + int main (void) { return 0; } Index: clang/lib/Driver/ToolChains/AIX.h =================================================================== --- clang/lib/Driver/ToolChains/AIX.h +++ clang/lib/Driver/ToolChains/AIX.h @@ -74,6 +74,9 @@ RuntimeLibType GetDefaultRuntimeLibType() const override; + // Set default DWARF version to 3 for now as latest AIX OS supports version 3. + unsigned GetDefaultDwarfVersion() const override { return 3; } + protected: Tool *buildAssembler() const override; Tool *buildLinker() const override;
Index: clang/test/CodeGen/dwarf-version.c =================================================================== --- clang/test/CodeGen/dwarf-version.c +++ clang/test/CodeGen/dwarf-version.c @@ -32,6 +32,17 @@ // Explicitly request both. // RUN: %clang -target i686-pc-windows-msvc -gdwarf -gcodeview -S -emit-llvm -o - %s \ // RUN: | FileCheck %s --check-prefixes=VER4,CODEVIEW +// RUN: %clang -target powerpc-ibm-aix-xcoff -g -S -emit-llvm -o - %s | \ +// RUN: FileCheck %s --check-prefix=VER3 +// RUN: %clang -target powerpc-ibm-aix-xcoff -gdwarf-2 -S -emit-llvm -o - %s | \ +// RUN: FileCheck %s --check-prefix=VER2 +// RUN: %clang -target powerpc-ibm-aix-xcoff -gdwarf-3 -S -emit-llvm -o - %s | \ +// RUN: FileCheck %s --check-prefix=VER3 +// RUN: %clang -target powerpc-ibm-aix-xcoff -gdwarf-4 -S -emit-llvm -o - %s | \ +// RUN: FileCheck %s --check-prefix=VER4 +// RUN: %clang -target powerpc-ibm-aix-xcoff -gdwarf-5 -S -emit-llvm -o - %s | \ +// RUN: FileCheck %s --check-prefix=VER5 + int main (void) { return 0; } Index: clang/lib/Driver/ToolChains/AIX.h =================================================================== --- clang/lib/Driver/ToolChains/AIX.h +++ clang/lib/Driver/ToolChains/AIX.h @@ -74,6 +74,9 @@ RuntimeLibType GetDefaultRuntimeLibType() const override; + // Set default DWARF version to 3 for now as latest AIX OS supports version 3. + unsigned GetDefaultDwarfVersion() const override { return 3; } + protected: Tool *buildAssembler() const override; Tool *buildLinker() const override;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits