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

Unified Diff: src/llvm2ice.cpp

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: Add tests 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
Index: src/llvm2ice.cpp
diff --git a/src/llvm2ice.cpp b/src/llvm2ice.cpp
index 986ff76ec4a2b2b8ca906dedbecb6fb6a4c629ec..05cde884efd0ffe0c23bd713427976de2aabfc7b 100644
--- a/src/llvm2ice.cpp
+++ b/src/llvm2ice.cpp
@@ -109,6 +109,12 @@ static cl::opt<NaClFileFormat> InputFileFormat(
clEnumValEnd),
cl::init(LLVMFormat));
+static cl::opt<std::string> DefaultGlobalPrefix(
+ "default-global-prefix",
+ cl::desc("Define default global prefix for naming "
+ "unnamed globals/funtions"),
Jim Stichnoth 2014/09/11 22:08:19 functions
Karl 2014/09/12 16:29:06 Done.
+ cl::init(""));
jvoung (off chromium) 2014/09/11 22:16:43 Should this have a default? At least llc has a de
Karl 2014/09/12 16:29:06 Good point. Changing default for globals to "Globa
+
static cl::opt<bool>
BuildOnRead("build-on-read",
cl::desc("Build ICE instructions when reading bitcode"),
@@ -143,6 +149,7 @@ int main(int argc, char **argv) {
Flags.DisableGlobals = DisableGlobals;
Flags.FunctionSections = FunctionSections;
Flags.UseSandboxing = UseSandboxing;
+ Flags.DefaultGlobalPrefix = DefaultGlobalPrefix;
Ice::GlobalContext Ctx(Ls, Os, VMask, TargetArch, OptLevel, TestPrefix,
Flags);

Powered by Google App Engine
This is Rietveld 408576698