Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(534)

Unified Diff: lib/Driver/Tools.cpp

Issue 1767393002: Allow overriding -fno-gnu-inline-assembly (Closed) Base URL: https://chromium.googlesource.com/a/native_client/pnacl-clang.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Driver/Tools.cpp
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index dedeb687ce739fdfb4323160a6dca94a31f40ee5..f4f7c4e1d36c937ab54a185d76b6fc53721683fb 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -1770,7 +1770,10 @@ void Clang::AddLe32TargetArgs(const ArgList &Args,
ArgStringList &CmdArgs) const {
Args.ClaimAllArgs(options::OPT_emit_obj);
- CmdArgs.push_back("-fno-gnu-inline-asm");
+ // -fno-gnu-inline-asm is default.
+ if (!Args.hasFlag(options::OPT_fgnu_inline_asm,
+ options::OPT_fno_gnu_inline_asm, false))
+ CmdArgs.push_back("-fno-gnu-inline-asm");
}
// Decode AArch64 features from string like +[no]featureA+[no]featureB+...
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698