diff options
author | Hongtao Yu <hoy@fb.com> | 2021-01-08 12:58:03 -0800 |
---|---|---|
committer | Hongtao Yu <hoy@fb.com> | 2021-01-08 12:58:38 -0800 |
commit | 0e23fd676c3984a2b867c167950464262c8e0dc6 (patch) | |
tree | e269d6208b79990573cedaff08cd83ee7e2d1caa /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | ffac9001d987096537b94ed7a1e4e4a4665d571f (diff) | |
download | llvm-0e23fd676c3984a2b867c167950464262c8e0dc6.zip llvm-0e23fd676c3984a2b867c167950464262c8e0dc6.tar.gz llvm-0e23fd676c3984a2b867c167950464262c8e0dc6.tar.bz2 |
[Driver] Add DWARF64 flag: -gdwarf64
@ikudrin enabled support for dwarf64 in D87011. Adding a clang flag so it can be used through that compilation pass.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D90507
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 6795151..dd66bf5 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -986,6 +986,7 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, setPGOUseInstrumentor(Opts, Opts.ProfileInstrumentUsePath); Opts.CodeModel = TargetOpts.CodeModel; + Opts.Dwarf64 = Args.hasArg(OPT_gdwarf64); if (const Arg *A = Args.getLastArg(OPT_ftime_report, OPT_ftime_report_EQ)) { Opts.TimePasses = true; |