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

Side by Side Diff: lib/Analysis/NaCl/PNaClABIProps.cpp

Issue 862943009: Fix Windows build warning (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- PNaClABIProps.cpp - Verify PNaCl ABI Function Rules ----------------===// 1 //===- PNaClABIProps.cpp - Verify PNaCl ABI Function Rules ----------------===//
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // The LLVM Compiler Infrastructure
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // Verify function-level PNaCl ABI properties, at the construct level. 10 // Verify function-level PNaCl ABI properties, at the construct level.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 case GlobalValue::LinkOnceAnyLinkage: return "linkonce"; 81 case GlobalValue::LinkOnceAnyLinkage: return "linkonce";
82 case GlobalValue::LinkOnceODRLinkage: return "linkonce_odr"; 82 case GlobalValue::LinkOnceODRLinkage: return "linkonce_odr";
83 case GlobalValue::WeakAnyLinkage: return "weak"; 83 case GlobalValue::WeakAnyLinkage: return "weak";
84 case GlobalValue::WeakODRLinkage: return "weak_odr"; 84 case GlobalValue::WeakODRLinkage: return "weak_odr";
85 case GlobalValue::CommonLinkage: return "common"; 85 case GlobalValue::CommonLinkage: return "common";
86 case GlobalValue::AppendingLinkage: return "appending"; 86 case GlobalValue::AppendingLinkage: return "appending";
87 case GlobalValue::ExternalWeakLinkage: return "extern_weak"; 87 case GlobalValue::ExternalWeakLinkage: return "extern_weak";
88 case GlobalValue::AvailableExternallyLinkage: 88 case GlobalValue::AvailableExternallyLinkage:
89 return "available_externally"; 89 return "available_externally";
90 } 90 }
91 llvm_unreachable("unhandled GlobalValue::LinkageTypes");
91 } 92 }
92 93
93 bool PNaClABIProps::isValidGlobalLinkage(GlobalValue::LinkageTypes Linkage) { 94 bool PNaClABIProps::isValidGlobalLinkage(GlobalValue::LinkageTypes Linkage) {
94 switch (Linkage) { 95 switch (Linkage) {
95 case GlobalValue::ExternalLinkage: 96 case GlobalValue::ExternalLinkage:
96 return true; 97 return true;
97 case GlobalValue::InternalLinkage: 98 case GlobalValue::InternalLinkage:
98 return true; 99 return true;
99 default: 100 default:
100 return false; 101 return false;
101 } 102 }
102 } 103 }
OLDNEW
« 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