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

Unified Diff: src/IceConverter.cpp

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.h ('k') | src/IceGlobalContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceConverter.cpp
diff --git a/src/IceConverter.cpp b/src/IceConverter.cpp
index 106b80912b863b9fd8ec67bd3611f942865dbbeb..65f8f66e184fff348a9131f47582597ec2299f9f 100644
--- a/src/IceConverter.cpp
+++ b/src/IceConverter.cpp
@@ -676,12 +676,12 @@ private:
std::map<const BasicBlock *, Ice::CfgNode *> NodeMap;
};
-} // end of anonymous namespace.
+} // end of anonymous namespace
namespace Ice {
void Converter::convertToIce(Module *Mod) {
- if (!Flags.DisableGlobals)
+ if (!Ctx->getFlags().DisableGlobals)
convertGlobals(Mod);
convertFunctions(Mod);
}
@@ -723,7 +723,8 @@ void Converter::convertGlobals(Module *Mod) {
}
GlobalLowering->lower(Name, Align, IsInternal, IsConst, IsZeroInitializer,
- NumElements, Data, Flags.DisableTranslation);
+ NumElements, Data,
+ Ctx->getFlags().DisableTranslation);
}
GlobalLowering.reset();
}
@@ -736,7 +737,7 @@ void Converter::convertFunctions(Module *Mod) {
Timer TConvert;
Cfg *Fcn = FunctionConverter.convertFunction(I);
- if (Flags.SubzeroTimingEnabled) {
+ if (Ctx->getFlags().SubzeroTimingEnabled) {
std::cerr << "[Subzero timing] Convert function "
<< Fcn->getFunctionName() << ": " << TConvert.getElapsedSec()
<< " sec\n";
@@ -747,4 +748,4 @@ void Converter::convertFunctions(Module *Mod) {
emitConstants();
}
-} // end of Ice namespace.
+} // end of namespace Ice
« no previous file with comments | « src/IceConverter.h ('k') | src/IceGlobalContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698