[debuginfo-tests] r326121 - [Darwin] Specify DWARF 2/4 when running apple accelerator tests.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 26 12:56:45 PST 2018


Author: davide
Date: Mon Feb 26 12:56:45 2018
New Revision: 326121

URL: http://llvm.org/viewvc/llvm-project?rev=326121&view=rev
Log:
[Darwin] Specify DWARF 2/4 when running apple accelerator tests.

These sections will be retired. Also, explicitly list llvm-objdump
as a dependency. This should've been done in the previous commit,
but I failed to squash the two changes together.

Thanks to Adrian for pointing the first problem out in a comment.

Modified:
    debuginfo-tests/trunk/CMakeLists.txt
    debuginfo-tests/trunk/apple-accel.cpp

Modified: debuginfo-tests/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/CMakeLists.txt?rev=326121&r1=326120&r2=326121&view=diff
==============================================================================
--- debuginfo-tests/trunk/CMakeLists.txt (original)
+++ debuginfo-tests/trunk/CMakeLists.txt Mon Feb 26 12:56:45 2018
@@ -9,6 +9,7 @@ set(DEBUGINFO_TEST_DEPS
   clang
   FileCheck
   count
+  llvm-objdump
   not
   )
 

Modified: debuginfo-tests/trunk/apple-accel.cpp
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/apple-accel.cpp?rev=326121&r1=326120&r2=326121&view=diff
==============================================================================
--- debuginfo-tests/trunk/apple-accel.cpp (original)
+++ debuginfo-tests/trunk/apple-accel.cpp Mon Feb 26 12:56:45 2018
@@ -1,7 +1,11 @@
 // REQUIRES: system-darwin
 // Test that clang produces the __apple accelerator tables,
 // e.g., __apple_types, correctly.
-// RUN: %clang %s %target_itanium_abi_host_triple -O0 -c -g -o %t-ex
+// These sections are going to be retired in DWARF 5, so we hardcode
+// the DWARF version in the tests.
+// RUN: %clang %s %target_itanium_abi_host_triple -gdwarf-2 -O0 -c -g -o %t-ex
+// RUN: llvm-objdump -section-headers %t-ex | FileCheck %s
+// RUN: %clang %s %target_itanium_abi_host_triple -gdwarf-4 -O0 -c -g -o %t-ex
 // RUN: llvm-objdump -section-headers %t-ex | FileCheck %s
 
 int main (int argc, char const *argv[]) { return argc; }




More information about the llvm-commits mailing list