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

Side by Side Diff: src/IceTypeConverter.cpp

Issue 1221643012: Subzero: Add -Wshadow to the build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Change the previous underscore naming style Created 5 years, 5 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
OLDNEW
1 //===- subzero/src/IceTypeConverter.cpp - Convert ICE/LLVM Types ----------===// 1 //===- subzero/src/IceTypeConverter.cpp - Convert ICE/LLVM Types ----------===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
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 // This file implements how to convert LLVM types to ICE types, and ICE types 10 // This file implements how to convert LLVM types to ICE types, and ICE types
11 // to LLVM types. 11 // to LLVM types.
12 // 12 //
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #include "IceTypeConverter.h" 15 #include "IceTypeConverter.h"
16 16
17 #pragma clang diagnostic push
18 #pragma clang diagnostic ignored "-Wunused-parameter"
19 #pragma clang diagnostic ignored "-Wshadow"
17 #include "llvm/Support/raw_ostream.h" 20 #include "llvm/Support/raw_ostream.h"
21 #pragma clang diagnostic pop
18 22
19 namespace Ice { 23 namespace Ice {
20 24
21 TypeConverter::TypeConverter(llvm::LLVMContext &Context) { 25 TypeConverter::TypeConverter(llvm::LLVMContext &Context) {
22 addLLVMType(IceType_void, llvm::Type::getVoidTy(Context)); 26 addLLVMType(IceType_void, llvm::Type::getVoidTy(Context));
23 llvm::Type *Type_i1 = llvm::IntegerType::get(Context, 1); 27 llvm::Type *Type_i1 = llvm::IntegerType::get(Context, 1);
24 llvm::Type *Type_i8 = llvm::IntegerType::get(Context, 8); 28 llvm::Type *Type_i8 = llvm::IntegerType::get(Context, 8);
25 llvm::Type *Type_i16 = llvm::IntegerType::get(Context, 16); 29 llvm::Type *Type_i16 = llvm::IntegerType::get(Context, 16);
26 llvm::Type *Type_i32 = llvm::IntegerType::get(Context, 32); 30 llvm::Type *Type_i32 = llvm::IntegerType::get(Context, 32);
27 llvm::Type *Type_f32 = llvm::Type::getFloatTy(Context); 31 llvm::Type *Type_f32 = llvm::Type::getFloatTy(Context);
(...skipping 22 matching lines...) Expand all
50 switch (LLVMTy->getTypeID()) { 54 switch (LLVMTy->getTypeID()) {
51 case llvm::Type::PointerTyID: 55 case llvm::Type::PointerTyID:
52 case llvm::Type::FunctionTyID: 56 case llvm::Type::FunctionTyID:
53 return getPointerType(); 57 return getPointerType();
54 default: 58 default:
55 return Ice::IceType_NUM; 59 return Ice::IceType_NUM;
56 } 60 }
57 } 61 }
58 62
59 } // end of Ice namespace. 63 } // end of Ice namespace.
OLDNEW
« src/IceInstARM32.h ('K') | « src/IceTypeConverter.h ('k') | src/PNaClTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698