Skip to content

Commit ce81651

Browse files
committed
Make sure line information is emitted when using -fompss-2
Closes llvm#36
1 parent b92eba8 commit ce81651

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3380,6 +3380,11 @@ bool CompilerInvocation::CreateFromArgs(CompilerInvocation &Res,
33803380
LangOpts.FunctionAlignment =
33813381
getLastArgIntValue(Args, OPT_function_alignment, 0, Diags);
33823382

3383+
// OmpSs, force line debug info
3384+
if (LangOpts.OmpSs) {
3385+
Res.getCodeGenOpts().setDebugInfo(codegenoptions::LocTrackingOnly);
3386+
}
3387+
33833388
if (LangOpts.CUDA) {
33843389
// During CUDA device-side compilation, the aux triple is the
33853390
// triple used for host compilation.

0 commit comments

Comments
 (0)