[PATCH] D69822: [clang] Add new -fdebug-default-version flag.
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 5 12:57:13 PST 2019
MaskRay added inline comments.
================
Comment at: clang/test/Driver/dwarf-default-version.c:1
+// RUN: %clang -target x86_64-linux-gnu -fdwarf-default-version=4 -gdwarf-2 -S -emit-llvm -o - %s | FileCheck %s --check-prefix=DWARF2
+// RUN: %clang -target x86_64-linux-gnu -gdwarf-3 -fdwarf-default-version=4 -S -emit-llvm -o - %s | FileCheck %s --check-prefix=DWARF3
----------------
`-emit-llvm` -> `-###`. @probinson mentioned that we just need to test -cc1 options.
We can use the following to check that codeview is not emitted.
```
// NOCODEVIEW-NOT: "-gcodeview"
```
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69822/new/
https://reviews.llvm.org/D69822
More information about the cfe-commits
mailing list