diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2018-07-17 23:17:16 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2018-07-17 23:17:16 +0000 |
commit | 27242c0402f0cf5280ea5aba05d8f3a71e2e57fd (patch) | |
tree | 9bce1a1f356bccc1bb590792ff58c53c0f7c427a /clang/lib/CodeGen/BackendUtil.cpp | |
parent | 4fd84c18df3e671e0a66fdf2abf9224b8868e0e4 (diff) | |
download | bcm5719-llvm-27242c0402f0cf5280ea5aba05d8f3a71e2e57fd.tar.gz bcm5719-llvm-27242c0402f0cf5280ea5aba05d8f3a71e2e57fd.zip |
Teach Clang to emit address-significance tables.
By default, we emit an address-significance table on all ELF
targets when the integrated assembler is enabled. The emission of an
address-significance table can be controlled with the -faddrsig and
-fno-addrsig flags.
Differential Revision: https://reviews.llvm.org/D48155
llvm-svn: 337333
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 226a27b2161..415bd962622 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -454,6 +454,7 @@ static void initTargetOptions(llvm::TargetOptions &Options, Options.ExplicitEmulatedTLS = CodeGenOpts.ExplicitEmulatedTLS; Options.DebuggerTuning = CodeGenOpts.getDebuggerTuning(); Options.EmitStackSizeSection = CodeGenOpts.StackSizeSection; + Options.EmitAddrsig = CodeGenOpts.Addrsig; if (CodeGenOpts.EnableSplitDwarf) Options.MCOptions.SplitDwarfFile = CodeGenOpts.SplitDwarfFile; |