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

Unified Diff: src/IceGlobalContext.h

Issue 455633002: Subzero: Add the "llvm2ice -ffunction-sections" argument. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Rebase Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceConverter.cpp ('k') | src/IceGlobalContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceGlobalContext.h
diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h
index e1b67ac555fd54b043234d6ff2bf7d0b63ee28ae..2acb8dea2390510c23c40aadf48d2110f2a6ce19 100644
--- a/src/IceGlobalContext.h
+++ b/src/IceGlobalContext.h
@@ -25,6 +25,8 @@
namespace Ice {
+class ClFlags;
+
// TODO: Accesses to all non-const fields of GlobalContext need to
// be synchronized, especially the constant pool, the allocator, and
// the output streams.
@@ -32,7 +34,7 @@ class GlobalContext {
public:
GlobalContext(llvm::raw_ostream *OsDump, llvm::raw_ostream *OsEmit,
VerboseMask Mask, TargetArch Arch, OptLevel Opt,
- IceString TestPrefix);
+ IceString TestPrefix, const ClFlags &Flags);
~GlobalContext();
// Returns true if any of the specified options in the verbose mask
@@ -86,6 +88,8 @@ public:
// constants of a given type.
ConstantList getConstantPool(Type Ty) const;
+ const ClFlags &getFlags() const { return Flags; }
+
// Allocate data of type T using the global allocator.
template <typename T> T *allocate() { return Allocator.Allocate<T>(); }
@@ -102,6 +106,7 @@ private:
const TargetArch Arch;
const OptLevel Opt;
const IceString TestPrefix;
+ const ClFlags &Flags;
bool HasEmittedFirstMethod;
GlobalContext(const GlobalContext &) LLVM_DELETED_FUNCTION;
GlobalContext &operator=(const GlobalContext &) LLVM_DELETED_FUNCTION;
« no previous file with comments | « src/IceConverter.cpp ('k') | src/IceGlobalContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698