[PATCH] D67723: [CodeView] Add option to disable inline line tables.

2019-10-11 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. I guess the commit message shouldn't say "[CodeView] Add option to disable inline line tables." It's really an option for all debug info. You could put "[DebugInfo]" on there, or just drop the tag. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://

[PATCH] D67723: [CodeView] Add option to disable inline line tables.

2019-10-11 Thread Amy Huang via Phabricator via cfe-commits
akhuang updated this revision to Diff 224687. akhuang added a comment. - Remove extra ifs. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D67723/new/ https://reviews.llvm.org/D67723 Files: clang/include/clang/Basic/CodeGenOptions.def clang/inclu

[PATCH] D67723: [CodeView] Add option to disable inline line tables.

2019-10-11 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added inline comments. Comment at: llvm/lib/Transforms/Utils/InlineFunction.cpp:1427 +// Remove debug info intrinsics. +if (auto *DbgInst = dyn_cast(BI)) { + BI = --(DbgInst->eraseFromParent()); Each of these inherit from DbgVariableI

[PATCH] D67723: [CodeView] Add option to disable inline line tables.

2019-10-11 Thread Amy Huang via Phabricator via cfe-commits
akhuang updated this revision to Diff 224681. akhuang marked 2 inline comments as done. akhuang added a comment. Herald added a subscriber: ormris. -Remove intrinsics debug info -Add inliner test -Add to function attribute description Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACT

[PATCH] D67723: [CodeView] Add option to disable inline line tables.

2019-10-03 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added inline comments. Comment at: clang/include/clang/Driver/Options.td:1943 +def gno_inline_line_tables : Flag<["-"], "gno-inline-line-tables">, + Flags<[CC1Option, CoreOption]>, HelpText<"Don't emit inline line tables">; aprantl wrote: > As a DWARF pers

[PATCH] D67723: [CodeView] Add option to disable inline line tables.

2019-10-02 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added a comment. There also needs to be a IR-based test for the inliner change. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D67723/new/ https://reviews.llvm.org/D67723 ___ cfe-commits mailing

[PATCH] D67723: [CodeView] Add option to disable inline line tables.

2019-10-02 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added inline comments. Comment at: llvm/lib/Transforms/Utils/InlineFunction.cpp:1426 + // If we are not generating inline line tables, set the debug location + // of the inlined code to be the call site. + DebugLoc IDL = aprant

[PATCH] D67723: [CodeView] Add option to disable inline line tables.

2019-10-02 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl requested changes to this revision. aprantl added a comment. This revision now requires changes to proceed. I don't think the implementation is correct, see inline comments. Comment at: clang/include/clang/Driver/Options.td:1943 +def gno_inline_line_tables : Flag<["-"],

[PATCH] D67723: [CodeView] Add option to disable inline line tables.

2019-10-02 Thread Jeremy Morse via Phabricator via cfe-commits
jmorse added a comment. Looks good, although I'm not familiar enough with frontend things to approve IMO. Using a function attribute seems fine and appropriate too -- although CU flags is another thing I'm unfamiliar with, so I can't really offer an opinion. Repository: rG LLVM Github Monor

[PATCH] D67723: [CodeView] Add option to disable inline line tables.

2019-09-18 Thread Amy Huang via Phabricator via cfe-commits
akhuang updated this revision to Diff 220756. akhuang marked 3 inline comments as done. akhuang added a comment. - Address comments Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D67723/new/ https://reviews.llvm.org/D67723 Files: clang/include/cla

[PATCH] D67723: [CodeView] Add option to disable inline line tables.

2019-09-18 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added subscribers: JDevlieghere, aprantl. dblaikie added a comment. As per the bug - I'm not super inclined towards a function attribute here (& even if it's going to be an inliner rather than debug info generation/backend thing (which I'm more on the fence about - think I'm happy with

[PATCH] D67723: [CodeView] Add option to disable inline line tables.

2019-09-18 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. + other debug info people Comment at: llvm/docs/LangRef.rst:1436 function. This can have very system-specific consequences. +``no-inline-line-tables`` +When this attribute is set to true, inline line tables are not generated This i

[PATCH] D67723: [CodeView] Add option to disable inline line tables.

2019-09-18 Thread Amy Huang via Phabricator via cfe-commits
akhuang created this revision. akhuang added a reviewer: rnk. Herald added subscribers: llvm-commits, cfe-commits, hiraditya. Herald added projects: clang, LLVM. This adds a clang option to disable inline line tables. When it is used, the inliner uses the call site as the location of the inlined f