diff options
author | Hans Wennborg <hans@hanshq.net> | 2016-08-10 16:36:05 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2016-08-10 16:36:05 +0000 |
commit | 8ff00e1716272645b3ed269e8d547c180c717ae2 (patch) | |
tree | b0a348f5ff4c8c92e76c0bf09230ab33b1f17593 /test | |
parent | fdc4b3e53c918a1bfe6b992678cc1e3413a1edbe (diff) |
Merging r278139:
------------------------------------------------------------------------
r278139 | rnk | 2016-08-09 10:23:56 -0700 (Tue, 09 Aug 2016) | 6 lines
[clang-cl] Make -gline-tables-only imply -gcodeview
It's surprising that you have to pass /Z7 in addition to -gcodeview to
get debug info. The sanitizer runtime, for example, expects that if the
compiler supports the -gline-tables-only flag, then it will emit debug
info.
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_39@278240 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Driver/cl-options.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Driver/cl-options.c b/test/Driver/cl-options.c index 223d37e5f4..4d9416b1f8 100644 --- a/test/Driver/cl-options.c +++ b/test/Driver/cl-options.c @@ -424,6 +424,10 @@ // Z7GMLT: "-gcodeview" // Z7GMLT: "-debug-info-kind=line-tables-only" +// RUN: %clang_cl -gline-tables-only /c -### -- %s 2>&1 | FileCheck -check-prefix=ZGMLT %s +// ZGMLT: "-gcodeview" +// ZGMLT: "-debug-info-kind=line-tables-only" + // RUN: %clang_cl /c -### -- %s 2>&1 | FileCheck -check-prefix=BreproDefault %s // BreproDefault: "-mincremental-linker-compatible" |