]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - llvm/InitializeLLVM.h
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / llvm / InitializeLLVM.h
index ba6d92e06221269aba75c4ea269c98580f7d13d0..dd7b7bcabcb6922054b294de2551de93f4323fba 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013, 2014 Apple Inc. All rights reserved.
+ * Copyright (C) 2013-2015 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
 
 #if HAVE(LLVM)
 
+#include "LLVMAPI.h"
+#include <string>
+#include <wtf/text/CString.h>
+
 namespace JSC {
 
-void initializeLLVMImpl();
+typedef void (*LoggerFunction)(const char*, ...) WTF_ATTRIBUTE_PRINTF(1, 2);
+typedef LLVMAPI* (*LLVMInitializerFunction)(LoggerFunction, bool* enableFastISel);
+
+LLVMInitializerFunction getLLVMInitializerFunction(bool verbose);
+
+extern const CString* llvmBitcodeLibraryForInliningPath;
 
-// You msut call this before using JSC::llvm. It's safe to call this multiple times.
+// You must call this before using JSC::llvm. It's safe to call this multiple times.
 // Returns true if we successfully loaded LLVM. Returns false if we didn't.
 bool initializeLLVM();