aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Bendersky <eliben@chromium.org>2013-05-21 10:40:49 -0700
committerEli Bendersky <eliben@chromium.org>2013-05-21 10:40:49 -0700
commite7ea8c5f10b2e490fb13570fa6b97e94d7bec6cd (patch)
treef65196ade751eeb1ca54685db7684178247e5406
parent1046c286a37c082562a348eb6521c71ca0b3ff75 (diff)
The RecordMetadataForSrpc function that was removed initialized NaClRecordObjectInformation, and this initialization has to be reinstated.
BUG=None R=dschuff@chromium.org Review URL: https://codereview.chromium.org/15451003
-rw-r--r--tools/pnacl-llc/pnacl-llc.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/pnacl-llc/pnacl-llc.cpp b/tools/pnacl-llc/pnacl-llc.cpp
index 437dff7c0b..f75bada099 100644
--- a/tools/pnacl-llc/pnacl-llc.cpp
+++ b/tools/pnacl-llc/pnacl-llc.cpp
@@ -327,6 +327,11 @@ static int compileModule(char **argv, LLVMContext &Context) {
CheckABIVerifyErrors(ABIErrorReporter, "Module");
}
#if defined(__native_client__) && defined(NACL_SRPC)
+ // Record that this isn't a shared library.
+ // TODO(eliben): clean this up more once the pnacl-llc switch-over is
+ // working.
+ NaClRecordObjectInformation(false, mod->getSOName());
+
// To determine if we should compile PIC or not, we needed to load at
// least the metadata. Since we've already constructed the commandline,
// we have to hack this in after commandline processing.