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

Side by Side Diff: src/IceGlobalContext.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, 6 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/IceGlobalContext.cpp - Global context defs -------------===// 1 //===- subzero/src/IceGlobalContext.cpp - Global context defs -------------===//
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 aspects of the compilation that persist across 10 // This file defines aspects of the compilation that persist across
11 // multiple functions. 11 // multiple functions.
12 // 12 //
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #include "IceGlobalContext.h" 15 #include "IceGlobalContext.h"
16 16
17 #include "IceCfg.h" 17 #include "IceCfg.h"
18 #include "IceCfgNode.h" 18 #include "IceCfgNode.h"
19 #include "IceClFlags.h" 19 #include "IceClFlags.h"
20 #include "IceDefs.h" 20 #include "IceDefs.h"
21 #include "IceELFObjectWriter.h" 21 #include "IceELFObjectWriter.h"
22 #include "IceGlobalInits.h" 22 #include "IceGlobalInits.h"
23 #include "IceOperand.h" 23 #include "IceOperand.h"
24 #include "IceTargetLowering.h" 24 #include "IceTargetLowering.h"
25 #include "IceTimerTree.h" 25 #include "IceTimerTree.h"
26 #include "IceTypes.h" 26 #include "IceTypes.h"
27
28 #pragma clang diagnostic push
29 #pragma clang diagnostic ignored "-Wunused-parameter"
27 #include "llvm/Support/Timer.h" 30 #include "llvm/Support/Timer.h"
31 #pragma clang diagnostic pop
28 32
29 #include <ctype.h> // isdigit(), isupper() 33 #include <ctype.h> // isdigit(), isupper()
30 #include <locale> // locale 34 #include <locale> // locale
31 #include <unordered_map> 35 #include <unordered_map>
32 36
33 37
34 namespace std { 38 namespace std {
35 template <> struct hash<Ice::RelocatableTuple> { 39 template <> struct hash<Ice::RelocatableTuple> {
36 size_t operator()(const Ice::RelocatableTuple &Key) const { 40 size_t operator()(const Ice::RelocatableTuple &Key) const {
37 return hash<Ice::IceString>()(Key.Name) + 41 return hash<Ice::IceString>()(Key.Name) +
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 Ctx = Func->getContext(); 926 Ctx = Func->getContext();
923 Active = 927 Active =
924 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled(); 928 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled();
925 if (Active) 929 if (Active)
926 Ctx->pushTimer(ID, StackID); 930 Ctx->pushTimer(ID, StackID);
927 } 931 }
928 932
929 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); 933 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS);
930 934
931 } // end of namespace Ice 935 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceConverter.cpp ('k') | src/IceGlobalInits.h » ('j') | unittest/IceParseInstsTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698