diff options
author | Adrian Prantl <aprantl@apple.com> | 2015-08-27 19:46:20 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2015-08-27 19:46:20 +0000 |
commit | 6b21ab21d120abf46f06803d47da123b4e8be420 (patch) | |
tree | 67a155d58aa3e07fc339ab38615e5bf78b60e6fc /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | ed6eab32b38b54ed513e38eafbab6e38f3b58738 (diff) | |
download | llvm-6b21ab21d120abf46f06803d47da123b4e8be420.zip llvm-6b21ab21d120abf46f06803d47da123b4e8be420.tar.gz llvm-6b21ab21d120abf46f06803d47da123b4e8be420.tar.bz2 |
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
llvm-svn: 246192
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index f078b37..414e589 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -424,6 +424,7 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Opts.DwarfVersion = 3; else if (Args.hasArg(OPT_gdwarf_4)) Opts.DwarfVersion = 4; + Opts.DebugTypeExtRefs = Args.hasArg(OPT_dwarf_ext_refs); if (const Arg *A = Args.getLastArg(OPT_emit_llvm_uselists, OPT_no_emit_llvm_uselists)) |