forked from OSchip/llvm-project
parent
9414f0f266
commit
6f9f4ebc9f
|
@ -872,30 +872,30 @@ void Driver::BuildUniversalActions(const ToolChain &TC,
|
|||
|
||||
// Handle debug info queries.
|
||||
Arg *A = Args.getLastArg(options::OPT_g_Group);
|
||||
if (A && !A->getOption().matches(options::OPT_g0) &&
|
||||
!A->getOption().matches(options::OPT_gstabs) &&
|
||||
ContainsCompileOrAssembleAction(Actions.back())) {
|
||||
|
||||
// Add a 'dsymutil' step if necessary, when debug info is enabled and we
|
||||
// have a compile input. We need to run 'dsymutil' ourselves in such cases
|
||||
// because the debug info will refer to a temporary object file which is
|
||||
// will be removed at the end of the compilation process.
|
||||
if (Act->getType() == types::TY_Image) {
|
||||
ActionList Inputs;
|
||||
Inputs.push_back(Actions.back());
|
||||
Actions.pop_back();
|
||||
Actions.push_back(new DsymutilJobAction(Inputs, types::TY_dSYM));
|
||||
}
|
||||
|
||||
// Verify the output (debug information only) if we passed '-verify'.
|
||||
if (Args.hasArg(options::OPT_verify)) {
|
||||
ActionList VerifyInputs;
|
||||
VerifyInputs.push_back(Actions.back());
|
||||
Actions.pop_back();
|
||||
Actions.push_back(new VerifyJobAction(VerifyInputs,
|
||||
types::TY_Nothing));
|
||||
}
|
||||
if (A && !A->getOption().matches(options::OPT_g0) &&
|
||||
!A->getOption().matches(options::OPT_gstabs) &&
|
||||
ContainsCompileOrAssembleAction(Actions.back())) {
|
||||
|
||||
// Add a 'dsymutil' step if necessary, when debug info is enabled and we
|
||||
// have a compile input. We need to run 'dsymutil' ourselves in such cases
|
||||
// because the debug info will refer to a temporary object file which is
|
||||
// will be removed at the end of the compilation process.
|
||||
if (Act->getType() == types::TY_Image) {
|
||||
ActionList Inputs;
|
||||
Inputs.push_back(Actions.back());
|
||||
Actions.pop_back();
|
||||
Actions.push_back(new DsymutilJobAction(Inputs, types::TY_dSYM));
|
||||
}
|
||||
|
||||
// Verify the output (debug information only) if we passed '-verify'.
|
||||
if (Args.hasArg(options::OPT_verify)) {
|
||||
ActionList VerifyInputs;
|
||||
VerifyInputs.push_back(Actions.back());
|
||||
Actions.pop_back();
|
||||
Actions.push_back(new VerifyJobAction(VerifyInputs,
|
||||
types::TY_Nothing));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue