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

Side by Side Diff: src/IceConverter.cpp

Issue 1217433002: Subzero: Enable errors for unused parameters. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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/IceConverter.cpp - Converts LLVM to Ice ---------------===// 1 //===- subzero/src/IceConverter.cpp - Converts LLVM to Ice ---------------===//
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 the LLVM to ICE converter. 10 // This file implements the LLVM to ICE converter.
11 // 11 //
12 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===//
13 13
14 #include "IceConverter.h" 14 #include "IceConverter.h"
15 15
16 #include "IceCfg.h" 16 #include "IceCfg.h"
17 #include "IceCfgNode.h" 17 #include "IceCfgNode.h"
18 #include "IceClFlags.h" 18 #include "IceClFlags.h"
19 #include "IceDefs.h" 19 #include "IceDefs.h"
20 #include "IceGlobalContext.h" 20 #include "IceGlobalContext.h"
21 #include "IceGlobalInits.h" 21 #include "IceGlobalInits.h"
22 #include "IceInst.h" 22 #include "IceInst.h"
23 #include "IceOperand.h" 23 #include "IceOperand.h"
24 #include "IceTargetLowering.h" 24 #include "IceTargetLowering.h"
25 #include "IceTypes.h" 25 #include "IceTypes.h"
26 #include "IceTypeConverter.h" 26 #include "IceTypeConverter.h"
27
28 #pragma clang diagnostic push
29 #pragma clang diagnostic ignored "-Wunused-parameter"
27 #include "llvm/IR/Constant.h" 30 #include "llvm/IR/Constant.h"
28 #include "llvm/IR/Constants.h" 31 #include "llvm/IR/Constants.h"
29 #include "llvm/IR/DataLayout.h" 32 #include "llvm/IR/DataLayout.h"
30 #include "llvm/IR/Instruction.h" 33 #include "llvm/IR/Instruction.h"
31 #include "llvm/IR/Instructions.h" 34 #include "llvm/IR/Instructions.h"
32 #include "llvm/IR/LLVMContext.h" 35 #include "llvm/IR/LLVMContext.h"
33 #include "llvm/IR/Module.h" 36 #include "llvm/IR/Module.h"
37 #pragma clang diagnostic pop
34 38
35 39
36 // TODO(kschimpf): Remove two namespaces being visible at once. 40 // TODO(kschimpf): Remove two namespaces being visible at once.
37 using namespace llvm; 41 using namespace llvm;
38 42
39 namespace { 43 namespace {
40 44
41 // Debugging helper 45 // Debugging helper
42 template <typename T> static std::string LLVMObjectAsString(const T *O) { 46 template <typename T> static std::string LLVMObjectAsString(const T *O) {
43 std::string Dump; 47 std::string Dump;
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 Ctx->pushTimer(TimerID, StackID); 905 Ctx->pushTimer(TimerID, StackID);
902 } 906 }
903 LLVM2ICEFunctionConverter FunctionConverter(*this); 907 LLVM2ICEFunctionConverter FunctionConverter(*this);
904 FunctionConverter.convertFunction(&I); 908 FunctionConverter.convertFunction(&I);
905 if (TimeThisFunction) 909 if (TimeThisFunction)
906 Ctx->popTimer(TimerID, StackID); 910 Ctx->popTimer(TimerID, StackID);
907 } 911 }
908 } 912 }
909 913
910 } // end of namespace Ice 914 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceCompiler.cpp ('k') | src/IceGlobalContext.cpp » ('j') | unittest/IceParseInstsTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698