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

Unified Diff: lib/Support/Triple.cpp

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: Created 5 years, 10 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
Index: lib/Support/Triple.cpp
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index 4a4773e2f7e7e6866da576e122e0049e3ae04037..332606a683904f7a506b2dffb943bc9c1b98d382 100644
--- a/lib/Support/Triple.cpp
+++ b/lib/Support/Triple.cpp
@@ -1001,6 +1001,13 @@ const char *Triple::getARMCPUForArch(StringRef MArch) const {
case llvm::Triple::Win32:
// FIXME: this is invalid for WindowsCE
return "cortex-a9";
+ // @LOCALMOD-START
+ case llvm::Triple::NaCl:
+ // Default to armv7 unless something more specific is specified.
+ if (MArch == "arm")
+ return "cortex-a9";
+ break;
+ // @LOCALMOD-END
default:
break;
}

Powered by Google App Engine
This is Rietveld 408576698