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/Frontend/CompilerInvocation.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/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index d62429dc788..c26d5fb79b3 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1119,6 +1119,8 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Opts.EmitVersionIdentMetadata = Args.hasFlag(OPT_Qy, OPT_Qn, true); + Opts.Addrsig = Args.hasArg(OPT_faddrsig); + return Success; } |