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

Unified Diff: src/IceConverter.cpp

Issue 874353006: Write out global initializers and data rel directly to ELF file. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: tweak comment Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/IceDefs.h » ('j') | src/IceELFObjectWriter.cpp » ('J')
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 0be0f28dc1a5420ade5f9b412e5af942e21b31ab..e8ec56d18112f49120c12f10a94a10d321acf8fc 100644
--- a/src/IceConverter.cpp
+++ b/src/IceConverter.cpp
@@ -643,9 +643,8 @@ public:
/// Converts global variables, and their initializers into ICE
/// global variable declarations, for module Mod. Puts corresponding
/// converted declarations into VariableDeclarations.
- void convertGlobalsToIce(
- Module *Mod,
- Ice::Translator::VariableDeclarationListType &VariableDeclarations);
+ void convertGlobalsToIce(Module *Mod,
+ Ice::VariableDeclarationList &VariableDeclarations);
private:
// Adds the Initializer to the list of initializers for the Global
@@ -681,8 +680,7 @@ private:
};
void LLVM2ICEGlobalsConverter::convertGlobalsToIce(
- Module *Mod,
- Ice::Translator::VariableDeclarationListType &VariableDeclarations) {
+ Module *Mod, Ice::VariableDeclarationList &VariableDeclarations) {
for (Module::const_global_iterator I = Mod->global_begin(),
E = Mod->global_end();
I != E; ++I) {
@@ -868,7 +866,7 @@ void Converter::installGlobalDeclarations(Module *Mod) {
void Converter::convertGlobals(Module *Mod) {
LLVM2ICEGlobalsConverter GlobalsConverter(*this);
- Translator::VariableDeclarationListType VariableDeclarations;
+ VariableDeclarationList VariableDeclarations;
GlobalsConverter.convertGlobalsToIce(Mod, VariableDeclarations);
lowerGlobals(VariableDeclarations);
}
« no previous file with comments | « no previous file | src/IceDefs.h » ('j') | src/IceELFObjectWriter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698