diff options
author | Devang Patel <dpatel@apple.com> | 2010-09-30 19:05:55 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-09-30 19:05:55 +0000 |
commit | 91bbb5547dd9c50cc120e093de66a4e316e899af (patch) | |
tree | 1d6028777a723ca396dd50e36399b1474dda2e64 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | f7edb1c8137c7499ac02f562372d57db0ad004dc (diff) | |
download | bcm5719-llvm-91bbb5547dd9c50cc120e093de66a4e316e899af.tar.gz bcm5719-llvm-91bbb5547dd9c50cc120e093de66a4e316e899af.zip |
Introduce -flimit-debug-info.
In this experimental mode try avoiding debug info emission for classes as much as possible. The goal is to reduce size of produced debuginfo without reducing quality of debug info in general. This is a work in progress.
llvm-svn: 115188
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 11869a17d65..132d7d0f8e9 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -859,6 +859,7 @@ static void ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, : CodeGenOptions::OnlyAlwaysInlining; Opts.DebugInfo = Args.hasArg(OPT_g); + Opts.LimitDebugInfo = Args.hasArg(OPT_flimit_debug_info); Opts.DisableLLVMOpts = Args.hasArg(OPT_disable_llvm_optzns); Opts.DisableRedZone = Args.hasArg(OPT_disable_red_zone); Opts.DwarfDebugFlags = Args.getLastArgValue(OPT_dwarf_debug_flags); |