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

Unified Diff: lib/Driver/Tools.cpp

Issue 1310173005: Support -malign-double option (Closed) Base URL: https://chromium.googlesource.com/a/native_client/pnacl-clang.git@master
Patch Set: Code review feedback Created 5 years, 3 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 | « lib/Basic/Targets.cpp ('k') | test/Driver/malign-double.c » ('j') | 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 567fd8cf92b2f83afb05454f749646ee28a8f3ca..05e81f55fff0020b42eb4d89bbe9b17e3e7c6567 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -1712,6 +1712,13 @@ void Clang::AddX86TargetArgs(const ArgList &Args,
<< A->getOption().getName() << Value;
}
}
+
+ // @LOCALMOD-START
+ if (Args.getLastArg(options::OPT_malign_double)) {
+ CmdArgs.push_back("-mllvm");
+ CmdArgs.push_back("-malign-double");
+ }
+ // @LOCALMOD-END
}
static inline bool HasPICArg(const ArgList &Args) {
« no previous file with comments | « lib/Basic/Targets.cpp ('k') | test/Driver/malign-double.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698