This is an archive of the discontinued LLVM Phabricator instance.

[CodeView] Only add the Scoped flag for an enum type when it has an immediate function scope to match MSVC
ClosedPublic

Authored by asmith on Sep 30 2018, 3:14 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

asmith created this revision.Sep 30 2018, 3:14 PM
rnk accepted this revision.Oct 1 2018, 1:34 PM

lgtm, thanks!

lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
1815–1816 ↗(On Diff #167667)

Please add a comment to indicate that clang never puts enums inside DILexicalBlock scopes. Enum types, as generated by clang, are always in function, class, or file scopes.

This revision is now accepted and ready to land.Oct 1 2018, 1:34 PM
asmith updated this revision to Diff 168011.Oct 2 2018, 1:28 PM
asmith marked an inline comment as done.
This revision was automatically updated to reflect the committed changes.