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

Side by Side Diff: src/IceCompiler.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/IceCompiler.cpp - Driver for bitcode translation -------===// 1 //===- subzero/src/IceCompiler.cpp - Driver for bitcode translation -------===//
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 a driver for translating PNaCl bitcode into native code. 10 // This file defines a driver for translating PNaCl bitcode into native code.
11 // It can either directly parse the binary bitcode file, or use LLVM routines to 11 // It can either directly parse the binary bitcode file, or use LLVM routines to
12 // parse a textual bitcode file into LLVM IR and then convert LLVM IR into ICE. 12 // parse a textual bitcode file into LLVM IR and then convert LLVM IR into ICE.
13 // In either case, the high-level ICE is then compiled down to native code, as 13 // In either case, the high-level ICE is then compiled down to native code, as
14 // either an ELF object file or a textual asm file. 14 // either an ELF object file or a textual asm file.
15 // 15 //
16 //===----------------------------------------------------------------------===// 16 //===----------------------------------------------------------------------===//
17 17
18 #include "IceCompiler.h" 18 #include "IceCompiler.h"
19 19
20 #include "IceCfg.h" 20 #include "IceCfg.h"
21 #include "IceClFlags.h" 21 #include "IceClFlags.h"
22 #include "IceClFlagsExtra.h" 22 #include "IceClFlagsExtra.h"
23 #include "IceConverter.h" 23 #include "IceConverter.h"
24 #include "IceELFObjectWriter.h" 24 #include "IceELFObjectWriter.h"
25 #include "PNaClTranslator.h" 25 #include "PNaClTranslator.h"
26
27 #pragma clang diagnostic push
28 #pragma clang diagnostic ignored "-Wunused-parameter"
26 #include "llvm/ADT/STLExtras.h" 29 #include "llvm/ADT/STLExtras.h"
27 #include "llvm/IR/LLVMContext.h" 30 #include "llvm/IR/LLVMContext.h"
28 #include "llvm/IR/Module.h" 31 #include "llvm/IR/Module.h"
29 #include "llvm/IRReader/IRReader.h" 32 #include "llvm/IRReader/IRReader.h"
30 #include "llvm/Support/SourceMgr.h" 33 #include "llvm/Support/SourceMgr.h"
31 #include "llvm/Support/StreamingMemoryObject.h" 34 #include "llvm/Support/StreamingMemoryObject.h"
35 #pragma clang diagnostic pop
32 36
33 namespace Ice { 37 namespace Ice {
34 38
35 namespace { 39 namespace {
36 40
37 struct { 41 struct {
38 const char *FlagName; 42 const char *FlagName;
39 int FlagValue; 43 int FlagValue;
40 } ConditionalBuildAttributes[] = { 44 } ConditionalBuildAttributes[] = {
41 {"dump", BuildDefs::dump()}, 45 {"dump", BuildDefs::dump()},
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 166
163 if (Ctx.getFlags().getTimeEachFunction()) { 167 if (Ctx.getFlags().getTimeEachFunction()) {
164 const bool DumpCumulative = false; 168 const bool DumpCumulative = false;
165 Ctx.dumpTimers(GlobalContext::TSK_Funcs, DumpCumulative); 169 Ctx.dumpTimers(GlobalContext::TSK_Funcs, DumpCumulative);
166 } 170 }
167 constexpr bool FinalStats = true; 171 constexpr bool FinalStats = true;
168 Ctx.dumpStats("_FINAL_", FinalStats); 172 Ctx.dumpStats("_FINAL_", FinalStats);
169 } 173 }
170 174
171 } // end of namespace Ice 175 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceCompileServer.cpp ('k') | src/IceConverter.cpp » ('j') | unittest/IceParseInstsTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698