diff options
author | David Candler <david.candler@arm.com> | 2019-10-31 08:55:57 +0000 |
---|---|---|
committer | David Candler <david.candler@arm.com> | 2019-10-31 09:48:30 +0000 |
commit | 92aa0c2dbcb723d102c508f6e7559330b637f912 (patch) | |
tree | c4935901211b87e2c4988d5a01110f9d3ce300f3 /clang/lib/CodeGen/BackendUtil.cpp | |
parent | 9c739252261ea762d1bbbd8234d93c9038711fcd (diff) | |
download | bcm5719-llvm-92aa0c2dbcb723d102c508f6e7559330b637f912.tar.gz bcm5719-llvm-92aa0c2dbcb723d102c508f6e7559330b637f912.zip |
[cfi] Add flag to always generate .debug_frame
This adds a flag to LLVM and clang to always generate a .debug_frame
section, even if other debug information is not being generated. In
situations where .eh_frame would normally be emitted, both .debug_frame
and .eh_frame will be used.
Differential Revision: https://reviews.llvm.org/D67216
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index 75a54d8f3c8..c15dc0be0b1 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -485,6 +485,7 @@ static void initTargetOptions(llvm::TargetOptions &Options, Options.EmitStackSizeSection = CodeGenOpts.StackSizeSection; Options.EmitAddrsig = CodeGenOpts.Addrsig; Options.EnableDebugEntryValues = CodeGenOpts.EnableDebugEntryValues; + Options.ForceDwarfFrameSection = CodeGenOpts.ForceDwarfFrameSection; Options.MCOptions.SplitDwarfFile = CodeGenOpts.SplitDwarfFile; Options.MCOptions.MCRelaxAll = CodeGenOpts.RelaxAll; |