summaryrefslogtreecommitdiff
path: root/test/Driver/debug-options.c
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-08-27 19:46:20 +0000
committerAdrian Prantl <aprantl@apple.com>2015-08-27 19:46:20 +0000
commit7bbf57e36a373af35431e6fb29639834f3243baa (patch)
treee24511b06d1c540e67f8d6926e1c365798c2815e /test/Driver/debug-options.c
parent39d0a05d24fbb5d3636c4790422b3f98b680b626 (diff)
downloadclang-7bbf57e36a373af35431e6fb29639834f3243baa.tar.gz
Add a -gmodules option to the driver and a -dwarf-ext-refs to cc1
to enable the use of external type references in the debug info (a.k.a. module debugging). The driver expands -gmodules to "-g -fmodule-format=obj -dwarf-ext-refs" and passes that to cc1. All this does at the moment is set a flag codegenopts. http://reviews.llvm.org/D11958 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246192 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/debug-options.c')
-rw-r--r--test/Driver/debug-options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Driver/debug-options.c b/test/Driver/debug-options.c
index b55f2ccb66..830305ad45 100644
--- a/test/Driver/debug-options.c
+++ b/test/Driver/debug-options.c
@@ -77,6 +77,9 @@
//
// RUN: %clang -### -g %s 2>&1 | FileCheck -check-prefix=CI %s
//
+// RUN: %clang -### -gmodules %s 2>&1 \
+// RUN: | FileCheck -check-prefix=GEXTREFS %s
+//
// G: "-cc1"
// G: "-g"
//
@@ -126,3 +129,5 @@
// CI: "-dwarf-column-info"
//
// NOCI-NOT: "-dwarf-column-info"
+//
+// GEXTREFS: "-g" "-dwarf-ext-refs" "-fmodule-format=obj"