[PATCH] D67004: [DebugInfo] Enable call site parameter debug info for ARM and AArch64
Nikola Prica via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 6 04:47:16 PDT 2019
NikolaPrica marked an inline comment as done.
NikolaPrica added inline comments.
================
Comment at: lib/Frontend/CompilerInvocation.cpp:784
+ Arch == llvm::Triple::armeb;
+ };
+
----------------
aprantl wrote:
> dstenb wrote:
> > vsk wrote:
> > > This helper would be easier to read as an out-of-line function, imo.
> > Or perhaps something like this?
> >
> > ```
> > const llvm::Triple::ArchType DebugEntryValueArchs[] = {llvm::Triple::x86, [...]};
> >
> > llvm::is_contained(DebugEntryValueArchs, Arch)
> > ```
> >
> I suppose this is fine, but it would be more elegant if we could query the target whether it supports entry values.
At this point target has not been initialized yet. I considered adding such support to `TargetMachine` or `LLVMTargetMachine` but then we would need to reset this option later at some point when this object is initialized.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67004/new/
https://reviews.llvm.org/D67004
More information about the llvm-commits
mailing list