aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-03-09 12:14:12 -0800
committerFangrui Song <i@maskray.me>2021-03-09 12:14:12 -0800
commitb4948c27d2e40586c0c4fa7cbf20b9c40a9f7584 (patch)
tree0f66f00d49759d8abd764c299dd31f909022049b /clang/lib/Frontend/CompilerInvocation.cpp
parentdf67d3526962ae51446b1390e7c40e045e580ec2 (diff)
downloadllvm-b4948c27d2e40586c0c4fa7cbf20b9c40a9f7584.zip
llvm-b4948c27d2e40586c0c4fa7cbf20b9c40a9f7584.tar.gz
llvm-b4948c27d2e40586c0c4fa7cbf20b9c40a9f7584.tar.bz2
Revert D97743 "Define __GCC_HAVE_DWARF2_CFI_ASM if applicable"
This reverts commit c11ff4bbada3b5127a1f010e0a97a1e6e46fb61a & df67d3526962ae51446b1390e7c40e045e580ec2. Trying to make the change to the driver to avoid round-trip issues.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index bd02408..2606e9f 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -4355,11 +4355,6 @@ bool CompilerInvocation::CreateFromArgsImpl(
Res.getCodeGenOpts().Argv0 = Argv0;
Res.getCodeGenOpts().CommandLineArgs = CommandLineArgs;
- if ((T.isOSBinFormatELF() || T.isOSBinFormatMachO()) &&
- (Res.getLangOpts()->Exceptions || Res.getCodeGenOpts().UnwindTables ||
- Res.getCodeGenOpts().getDebugInfo() != codegenoptions::NoDebugInfo))
- Res.getPreprocessorOpts().addMacroDef("__GCC_HAVE_DWARF2_CFI_ASM=1");
-
Success &= FixupInvocation(Res, Diags, Args, DashX);
return Success;