Implement a new -fstandalone-debug option. rdar://problem/15685848
authorAdrian Prantl <aprantl@apple.com>
Tue, 7 Jan 2014 01:19:08 +0000 (01:19 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 7 Jan 2014 01:19:08 +0000 (01:19 +0000)
commita763447124ba107870865b1c7ba8ad97f0cf78d8
tree7265d3d7bb8bfc79362b21bdb1e9bd280fa98932
parent0b8e3b2cb41e105a39b9d9b21d6ece18942581cb
Implement a new -fstandalone-debug option. rdar://problem/15685848
It controls everything that -flimit-debug-info used to, plus the
vtable type optimization. The old -fno-limit-debug-info option is now an
alias to -fstandalone-debug and vice versa.

Standalone is the default on Darwin until dtrace is updated to work with
non-standalone debug info (rdar://problem/15758808).

Note: I kept the LimitedDebugInfo name in CodeGenOptions::DebugInfoKind
because NoStandaloneDebugInfo sounded even more confusing.

llvm-svn: 198655
15 files changed:
clang/docs/tools/clang.pod
clang/include/clang/Driver/Options.td
clang/include/clang/Frontend/CodeGenOptions.h
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/Driver/Tools.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/CodeGenCXX/debug-info-class-limited.cpp
clang/test/CodeGenCXX/debug-info-class-nolimit.cpp
clang/test/CodeGenCXX/debug-info-dup-fwd-decl.cpp
clang/test/CodeGenCXX/debug-info-method2.cpp
clang/test/CodeGenCXX/debug-info-namespace.cpp
clang/test/CodeGenCXX/debug-info-pubtypes.cpp
clang/test/CodeGenCXX/debug-info-template-limit.cpp
clang/test/CodeGenCXX/debug-info-template-member.cpp
clang/test/CodeGenCXX/debug-info-vtable-optzn.cpp [new file with mode: 0644]