summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2012-10-18 21:52:18 +0000
committerEric Christopher <echristo@gmail.com>2012-10-18 21:52:18 +0000
commita2f7eb7c52cdc62d25088937b0895b9aabe11d18 (patch)
tree86e077ce6e66c2f963e4b4dddf936f2c1a787257 /clang/lib/Frontend/CompilerInvocation.cpp
parent1adabcf3f54a0b1a7af22792eb389ec10d94cd8c (diff)
downloadbcm5719-llvm-a2f7eb7c52cdc62d25088937b0895b9aabe11d18.tar.gz
bcm5719-llvm-a2f7eb7c52cdc62d25088937b0895b9aabe11d18.zip
Add a new option for and disable column number information as there
are no known current users of column info. Robustify and fix up a few tests in the process. Reduces the size of debug information by a small amount. Part of PR14106 llvm-svn: 166236
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 09c48ccfdba..4f0cfa80019 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -197,6 +197,8 @@ static void CodeGenOptsToArgs(const CodeGenOptions &Opts, ToArgsList &Res) {
Res.push_back("-fno-limit-debug-info");
break;
}
+ if (Opts.DebugColumnInfo)
+ Res.push_back("-gcolumn-info");
if (Opts.DisableLLVMOpts)
Res.push_back("-disable-llvm-optzns");
if (Opts.DisableRedZone)
@@ -1228,6 +1230,7 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK,
else
Opts.DebugInfo = CodeGenOptions::FullDebugInfo;
}
+ Opts.DebugColumnInfo = Args.hasArg(OPT_dwarf_column_info);
Opts.DisableLLVMOpts = Args.hasArg(OPT_disable_llvm_optzns);
Opts.DisableRedZone = Args.hasArg(OPT_disable_red_zone);
OpenPOWER on IntegriCloud