Take DW_AT_comp_dir from $PWD when it's present and starts with a '/'. This is
closer to what GCC does, except that GCC also checks that the inodes for $PWD and '.' match. llvm-svn: 142633
This commit is contained in:
@@ -131,6 +131,10 @@ static void CodeGenOptsToArgs(const CodeGenOptions &Opts,
|
||||
Res.push_back("-disable-llvm-optzns");
|
||||
if (Opts.DisableRedZone)
|
||||
Res.push_back("-disable-red-zone");
|
||||
if (!Opts.DebugCompilationDir.empty()) {
|
||||
Res.push_back("-fdebug-compilation-dir");
|
||||
Res.push_back(Opts.DebugCompilationDir);
|
||||
}
|
||||
if (!Opts.DwarfDebugFlags.empty()) {
|
||||
Res.push_back("-dwarf-debug-flags");
|
||||
Res.push_back(Opts.DwarfDebugFlags);
|
||||
@@ -1071,6 +1075,7 @@ static void ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK,
|
||||
Opts.EmitGcovArcs = Args.hasArg(OPT_femit_coverage_data);
|
||||
Opts.EmitGcovNotes = Args.hasArg(OPT_femit_coverage_notes);
|
||||
Opts.CoverageFile = Args.getLastArgValue(OPT_coverage_file);
|
||||
Opts.DebugCompilationDir = Args.getLastArgValue(OPT_fdebug_compilation_dir);
|
||||
|
||||
if (Arg *A = Args.getLastArg(OPT_fobjc_dispatch_method_EQ)) {
|
||||
StringRef Name = A->getValue(Args);
|
||||
|
||||
Reference in New Issue
Block a user