[PATCH] D39673: Toolchain: Normalize dwarf, sjlj and seh eh
Martin Storsjö via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 21 13:39:58 PST 2017
mstorsjo added a comment.
No objection from me about committing this now, although I have some minor comments (that possibly can be taken care of without reposting and re-reviewing). Still ok with @rnk?
================
Comment at: lib/Frontend/InitPreprocessor.cpp:686
+ else if ((TI.getTriple().isThumb() || TI.getTriple().isARM()) &&
+ (TI.getTriple().isOSNetBSD() || TI.getTriple().isOSWindows()))
+ Builder.defineMacro("__ARM_DWARF_EH__");
----------------
I guess you could add an `|| LangOpts.DWARFExceptions` here as well? That would allow you to manually enable dwarf on arm on linux as well. (I did that manually while testing some bits in libunwind.)
Ideally I'd prefer to have a `UseDWARFExceptions` just like there already is `UseSEHExceptions` and `UseSjLjExceptions` in the driver, so that it'd explcitly pass `-fdwarf-exceptions` here in the cases where it's known to be the default. But at least this form shouldn't break anything right now.
Repository:
rL LLVM
https://reviews.llvm.org/D39673
More information about the cfe-commits
mailing list