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

Side by Side Diff: src/IceTypeConverter.h

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.h - Convert ICE/LLVM Types --*- C++ -*-===// 1 //===- subzero/src/IceTypeConverter.h - Convert ICE/LLVM Types --*- C++ -*-===//
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 defines how to convert LLVM types to ICE types, and ICE types 10 // This file defines 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 #ifndef SUBZERO_SRC_ICETYPECONVERTER_H 15 #ifndef SUBZERO_SRC_ICETYPECONVERTER_H
16 #define SUBZERO_SRC_ICETYPECONVERTER_H 16 #define SUBZERO_SRC_ICETYPECONVERTER_H
17 17
18 #include "IceDefs.h" 18 #include "IceDefs.h"
19 #include "IceTypes.h" 19 #include "IceTypes.h"
20
21 #pragma clang diagnostic push
22 #pragma clang diagnostic ignored "-Wunused-parameter"
23 #pragma clang diagnostic ignored "-Wshadow"
20 #include "llvm/IR/DerivedTypes.h" 24 #include "llvm/IR/DerivedTypes.h"
25 #pragma clang diagnostic pop
21 26
22 namespace llvm { 27 namespace llvm {
23 class LLVMContext; 28 class LLVMContext;
24 } // end of namespace llvm 29 } // end of namespace llvm
25 30
26 namespace Ice { 31 namespace Ice {
27 32
28 /// Converts LLVM types to ICE types, and ICE types to LLVM types. 33 /// Converts LLVM types to ICE types, and ICE types to LLVM types.
29 class TypeConverter { 34 class TypeConverter {
30 TypeConverter() = delete; 35 TypeConverter() = delete;
(...skipping 20 matching lines...) Expand all
51 // Add LLVM/ICE pair to internal tables. 56 // Add LLVM/ICE pair to internal tables.
52 void addLLVMType(Type Ty, llvm::Type *LLVMTy); 57 void addLLVMType(Type Ty, llvm::Type *LLVMTy);
53 58
54 // Converts types not in LLVM2IceMap. 59 // Converts types not in LLVM2IceMap.
55 Type convertToIceTypeOther(llvm::Type *LLVMTy) const; 60 Type convertToIceTypeOther(llvm::Type *LLVMTy) const;
56 }; 61 };
57 62
58 } // end of namespace Ice 63 } // end of namespace Ice
59 64
60 #endif // SUBZERO_SRC_ICETYPECONVERTER_H 65 #endif // SUBZERO_SRC_ICETYPECONVERTER_H
OLDNEW
« src/IceInstARM32.h ('K') | « src/IceTranslator.cpp ('k') | src/IceTypeConverter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698