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

Side by Side Diff: src/IceGlobalContext.cpp

Issue 1575873006: Subzero: Fix g++ warnings. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 11 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 /// \file 10 /// \file
11 /// \brief Defines aspects of the compilation that persist across multiple 11 /// \brief Defines aspects of the compilation that persist across multiple
12 /// functions. 12 /// functions.
13 /// 13 ///
14 //===----------------------------------------------------------------------===// 14 //===----------------------------------------------------------------------===//
15 15
16 #include "IceGlobalContext.h" 16 #include "IceGlobalContext.h"
17 17
18 #include "IceCfg.h" 18 #include "IceCfg.h"
19 #include "IceCfgNode.h" 19 #include "IceCfgNode.h"
20 #include "IceClFlags.h" 20 #include "IceClFlags.h"
21 #include "IceDefs.h" 21 #include "IceDefs.h"
22 #include "IceELFObjectWriter.h" 22 #include "IceELFObjectWriter.h"
23 #include "IceGlobalInits.h" 23 #include "IceGlobalInits.h"
24 #include "IceOperand.h" 24 #include "IceOperand.h"
25 #include "IceTargetLowering.h" 25 #include "IceTargetLowering.h"
26 #include "IceTimerTree.h" 26 #include "IceTimerTree.h"
27 #include "IceTypes.h" 27 #include "IceTypes.h"
28 28
29 #ifdef __clang__
29 #pragma clang diagnostic push 30 #pragma clang diagnostic push
30 #pragma clang diagnostic ignored "-Wunused-parameter" 31 #pragma clang diagnostic ignored "-Wunused-parameter"
32 #endif // __clang__
33
31 #include "llvm/Support/Timer.h" 34 #include "llvm/Support/Timer.h"
35
36 #ifdef __clang__
32 #pragma clang diagnostic pop 37 #pragma clang diagnostic pop
38 #endif // __clang__
33 39
34 #include <algorithm> // max() 40 #include <algorithm> // max()
35 #include <cctype> // isdigit(), isupper() 41 #include <cctype> // isdigit(), isupper()
36 #include <locale> // locale 42 #include <locale> // locale
37 43
38 namespace std { 44 namespace std {
39 template <> struct hash<Ice::RelocatableTuple> { 45 template <> struct hash<Ice::RelocatableTuple> {
40 size_t operator()(const Ice::RelocatableTuple &Key) const { 46 size_t operator()(const Ice::RelocatableTuple &Key) const {
41 return hash<Ice::IceString>()(Key.Name) + 47 return hash<Ice::IceString>()(Key.Name) +
42 hash<Ice::RelocOffsetT>()(Key.Offset); 48 hash<Ice::RelocOffsetT>()(Key.Offset);
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
1009 Ctx = Func->getContext(); 1015 Ctx = Func->getContext();
1010 Active = 1016 Active =
1011 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled(); 1017 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled();
1012 if (Active) 1018 if (Active)
1013 Ctx->pushTimer(ID, StackID); 1019 Ctx->pushTimer(ID, StackID);
1014 } 1020 }
1015 1021
1016 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); 1022 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS);
1017 1023
1018 } // end of namespace Ice 1024 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceConverter.cpp ('k') | src/IceGlobalInits.h » ('j') | src/IceUtils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698