[ExecutionEngine] ArrayRefize argument passing.
[oota-llvm.git] / lib / ExecutionEngine / Orc / OrcMCJITReplacement.cpp
index f658ab2b298f1886380bbc4337498685cf1b6dfb..b7a68e041c1286b7b195f5d1bf9cda2345c2077e 100644 (file)
 namespace {
 
 static struct RegisterJIT {
-  RegisterJIT() { llvm::OrcMCJITReplacement::Register(); }
+  RegisterJIT() { llvm::orc::OrcMCJITReplacement::Register(); }
 } JITRegistrator;
 
-extern "C" void LLVMLinkInOrcMCJITReplacement() {}
 }
 
+extern "C" void LLVMLinkInOrcMCJITReplacement() {}
+
 namespace llvm {
+namespace orc {
 
 GenericValue
 OrcMCJITReplacement::runFunction(Function *F,
-                                 const std::vector<GenericValue> &ArgValues) {
+                                 ArrayRef<GenericValue> ArgValues) {
   assert(F && "Function *F was null at entry to run()");
 
   void *FPtr = getPointerToFunction(F);
@@ -121,4 +123,6 @@ OrcMCJITReplacement::runFunction(Function *F,
 
   llvm_unreachable("Full-featured argument passing not supported yet!");
 }
-}
+
+} // End namespace orc.
+} // End namespace llvm.