Follow the ELF spec. Use the terms relocatable.
Also, clean up the code.
Change-Id: I135050b1c3072ebb33ea0b48f9e2902c9eccd587
diff --git a/lib/ExecutionEngine/Script.cpp b/lib/ExecutionEngine/Script.cpp
index bfa914b..085e7c8 100644
--- a/lib/ExecutionEngine/Script.cpp
+++ b/lib/ExecutionEngine/Script.cpp
@@ -76,8 +76,9 @@
break;
}
- for (size_t i = 0; i < 2; ++i)
+ for (size_t i = 0; i < 2; ++i) {
delete mSourceList[i];
+ }
}
@@ -179,10 +180,10 @@
return 0;
}
-int Script::prepareObject(char const *cacheDir,
- char const *cacheName,
- llvm::Reloc::Model RelocModel,
- unsigned long flags) {
+int Script::prepareRelocatable(char const *cacheDir,
+ char const *cacheName,
+ llvm::Reloc::Model RelocModel,
+ unsigned long flags) {
mObjectType = ScriptObject::Relocatable;
#if USE_CACHE
if (cacheDir && cacheName) {