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

Unified Diff: src/IceTranslator.h

Issue 567703003: Allow ability to name unnamed global addresses in Subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits in patch set 4. Created 6 years, 3 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/IceTranslator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTranslator.h
diff --git a/src/IceTranslator.h b/src/IceTranslator.h
index ec5c0328a30c56d6a93759771730092654977b89..2ca6d42d065579c5e24f6ee3c1538de9eb542a53 100644
--- a/src/IceTranslator.h
+++ b/src/IceTranslator.h
@@ -17,6 +17,10 @@
#include "llvm/ADT/OwningPtr.h"
+namespace llvm {
+class Module;
+}
+
namespace Ice {
class ClFlags;
@@ -47,6 +51,11 @@ public:
/// Emits the constant pool.
void emitConstants();
+ // Walks module and generates names for unnamed globals and
+ // functions using prefix getFlags().DefaultGlobalPrefix, if the
+ // prefix is non-empty.
+ void nameUnnamedGlobalAddresses(llvm::Module *Mod);
+
protected:
GlobalContext *Ctx;
const ClFlags &Flags;
« no previous file with comments | « src/IceConverter.cpp ('k') | src/IceTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698