aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2021-11-17 15:57:31 -0500
committerNico Weber <thakis@chromium.org>2021-11-17 15:59:23 -0500
commit36873fb768dbedeb3e9167117d3bb63b3720d214 (patch)
treed173b67c7980732b62d9500851937393b3957f43 /clang/lib/Frontend/CompilerInvocation.cpp
parentc46becf500df2a7fb4b4fce16178a036c344315a (diff)
downloadllvm-36873fb768dbedeb3e9167117d3bb63b3720d214.zip
llvm-36873fb768dbedeb3e9167117d3bb63b3720d214.tar.gz
llvm-36873fb768dbedeb3e9167117d3bb63b3720d214.tar.bz2
[clang] Try to fix test more after ae98182cf7341181e
We need to use the td-based marshalling instead of doing this manually, else the setting gets lost on the way to codegen in most build configs.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 3efcab5..8d33a59 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -1614,18 +1614,6 @@ bool CompilerInvocation::ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args,
}
}
- if (Arg *A = Args.getLastArg(options::OPT_inline_asm_EQ)) {
- StringRef Value = A->getValue();
- if (Value == "att") {
- Opts.InlineAsmDialect = CodeGenOptions::IAD_ATT;
- } else if (Value == "intel") {
- Opts.InlineAsmDialect = CodeGenOptions::IAD_Intel;
- } else {
- Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args)
- << A->getValue();
- }
- }
-
// PIC defaults to -fno-direct-access-external-data while non-PIC defaults to
// -fdirect-access-external-data.
Opts.DirectAccessExternalData =