diff options
author | Eric Christopher <echristo@gmail.com> | 2015-12-28 19:58:44 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-12-28 19:58:44 +0000 |
commit | 3cb592d6b60c080a9cca4dced505921a09c12a2e (patch) | |
tree | 228e086ea2e11e081ce589e1bfabeedce43fb279 /clang/test/CodeGen/dwarf-version.c | |
parent | 8562493f6a65a079950185e5169efd149043e6a0 (diff) | |
download | bcm5719-llvm-3cb592d6b60c080a9cca4dced505921a09c12a2e.tar.gz bcm5719-llvm-3cb592d6b60c080a9cca4dced505921a09c12a2e.zip |
We check for dwarf 5 in the backend, so go ahead and pass it along via
the front end as well.
Note that DWARF5 isn't finalized and any feature support is subject to
change and accepting of the option doesn't mean we're supporting the
full range of the current standard.
llvm-svn: 256516
Diffstat (limited to 'clang/test/CodeGen/dwarf-version.c')
-rw-r--r-- | clang/test/CodeGen/dwarf-version.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/CodeGen/dwarf-version.c b/clang/test/CodeGen/dwarf-version.c index eadce215154..2171ed6ad97 100644 --- a/clang/test/CodeGen/dwarf-version.c +++ b/clang/test/CodeGen/dwarf-version.c @@ -1,6 +1,7 @@ // RUN: %clang -target x86_64-linux-gnu -gdwarf-2 -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER2 // RUN: %clang -target x86_64-linux-gnu -gdwarf-3 -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER3 // RUN: %clang -target x86_64-linux-gnu -gdwarf-4 -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER4 +// RUN: %clang -target x86_64-linux-gnu -gdwarf-5 -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER5 // RUN: %clang -target x86_64-linux-gnu -g -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER4 // RUN: %clang -target x86_64-linux-gnu -gdwarf -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER4 // RUN: %clang -target x86_64-apple-darwin -g -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER2 @@ -18,6 +19,7 @@ int main (void) { // VER2: !{i32 2, !"Dwarf Version", i32 2} // VER3: !{i32 2, !"Dwarf Version", i32 3} // VER4: !{i32 2, !"Dwarf Version", i32 4} +// VER5: !{i32 2, !"Dwarf Version", i32 5} // NODWARF-NOT: !"Dwarf Version" // CODEVIEW: !{i32 2, !"CodeView", i32 1} |