[PATCH] clang-cl: Implement the -arch flag

Hans Wennborg hans at chromium.org
Tue Jul 15 09:35:54 PDT 2014


lgtm

================
Comment at: lib/Driver/Tools.cpp:1454
@@ +1453,3 @@
+    std::string ArchLower(Arch);
+    std::transform(ArchLower.begin(), ArchLower.end(), ArchLower.begin(), std::tolower);
+    bool ArchUsed = false;
----------------
You can just do:

std::string ArchLower = Arch->lower();

Or maybe just use Arch->lower() when updating Features in the code below.

http://reviews.llvm.org/D4519






More information about the cfe-commits mailing list