Skip to content

Commit

Permalink
[Orc] Remove LLVMInitializeCore() calls from examples
Browse files Browse the repository at this point in the history
Per discussion on D144970, these are no longer necessary.
  • Loading branch information
nikic committed Mar 1, 2023
1 parent 8fd3bfc commit 4d513bd
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 18 deletions.
Expand Up @@ -8,7 +8,6 @@

#include "llvm-c/Core.h"
#include "llvm-c/Error.h"
#include "llvm-c/Initialization.h"
#include "llvm-c/LLJIT.h"
#include "llvm-c/Support.h"
#include "llvm-c/Target.h"
Expand Down Expand Up @@ -62,7 +61,6 @@ int main(int argc, char *argv[]) {

// Parse command line arguments and initialize LLVM Core.
LLVMParseCommandLineOptions(argc, (const char **)argv, "");
LLVMInitializeCore(LLVMGetGlobalPassRegistry());

// Initialize native target codegen and asm printer.
LLVMInitializeNativeTarget();
Expand Down
Expand Up @@ -8,7 +8,6 @@

#include "llvm-c/Core.h"
#include "llvm-c/Error.h"
#include "llvm-c/Initialization.h"
#include "llvm-c/LLJIT.h"
#include "llvm-c/Support.h"
#include "llvm-c/Target.h"
Expand Down Expand Up @@ -76,7 +75,6 @@ int main(int argc, char *argv[]) {

// Parse command line arguments and initialize LLVM Core.
LLVMParseCommandLineOptions(argc, (const char **)argv, "");
LLVMInitializeCore(LLVMGetGlobalPassRegistry());

// Initialize native target codegen and asm printer.
LLVMInitializeNativeTarget();
Expand Down
Expand Up @@ -17,7 +17,6 @@

#include "llvm-c/Core.h"
#include "llvm-c/Error.h"
#include "llvm-c/Initialization.h"
#include "llvm-c/LLJIT.h"
#include "llvm-c/Support.h"
#include "llvm-c/Target.h"
Expand Down Expand Up @@ -61,7 +60,6 @@ int main(int argc, char *argv[]) {
int MainResult = 0;

LLVMParseCommandLineOptions(argc, (const char **)argv, "");
LLVMInitializeCore(LLVMGetGlobalPassRegistry());

LLVMInitializeNativeTarget();
LLVMInitializeNativeAsmPrinter();
Expand Down
Expand Up @@ -17,7 +17,6 @@

#include "llvm-c/Core.h"
#include "llvm-c/Error.h"
#include "llvm-c/Initialization.h"
#include "llvm-c/LLJIT.h"
#include "llvm-c/Support.h"
#include "llvm-c/Target.h"
Expand Down Expand Up @@ -70,7 +69,6 @@ int main(int argc, char *argv[]) {
int MainResult = 0;

LLVMParseCommandLineOptions(argc, (const char **)argv, "");
LLVMInitializeCore(LLVMGetGlobalPassRegistry());

LLVMInitializeNativeTarget();
LLVMInitializeNativeAsmPrinter();
Expand Down
Expand Up @@ -9,7 +9,6 @@
#include "llvm-c/Core.h"
#include "llvm-c/Error.h"
#include "llvm-c/IRReader.h"
#include "llvm-c/Initialization.h"
#include "llvm-c/LLJIT.h"
#include "llvm-c/Support.h"
#include "llvm-c/Target.h"
Expand Down Expand Up @@ -103,7 +102,6 @@ int main(int argc, char *argv[]) {

// Parse command line arguments and initialize LLVM Core.
LLVMParseCommandLineOptions(argc, (const char **)argv, "");
LLVMInitializeCore(LLVMGetGlobalPassRegistry());

// Initialize native target codegen and asm printer.
LLVMInitializeNativeTarget();
Expand Down
Expand Up @@ -14,7 +14,6 @@

#include "llvm-c/Core.h"
#include "llvm-c/Error.h"
#include "llvm-c/Initialization.h"
#include "llvm-c/LLJIT.h"
#include "llvm-c/OrcEE.h"
#include "llvm-c/Support.h"
Expand Down Expand Up @@ -201,7 +200,6 @@ int main(int argc, char *argv[]) {

// Parse command line arguments and initialize LLVM Core.
LLVMParseCommandLineOptions(argc, (const char **)argv, "");
LLVMInitializeCore(LLVMGetGlobalPassRegistry());

// Initialize native target codegen and asm printer.
LLVMInitializeNativeTarget();
Expand Down
Expand Up @@ -8,7 +8,6 @@

#include "llvm-c/Core.h"
#include "llvm-c/Error.h"
#include "llvm-c/Initialization.h"
#include "llvm-c/LLJIT.h"
#include "llvm-c/Support.h"
#include "llvm-c/Target.h"
Expand Down Expand Up @@ -121,7 +120,6 @@ int main(int argc, char *argv[]) {

// Parse command line arguments and initialize LLVM Core.
LLVMParseCommandLineOptions(argc, (const char **)argv, "");
LLVMInitializeCore(LLVMGetGlobalPassRegistry());

// Initialize native target codegen and asm printer.
LLVMInitializeNativeTarget();
Expand Down
Expand Up @@ -8,7 +8,6 @@

#include "llvm-c/Core.h"
#include "llvm-c/Error.h"
#include "llvm-c/Initialization.h"
#include "llvm-c/LLJIT.h"
#include "llvm-c/Support.h"
#include "llvm-c/Target.h"
Expand Down Expand Up @@ -76,7 +75,6 @@ int main(int argc, char *argv[]) {

// Parse command line arguments and initialize LLVM Core.
LLVMParseCommandLineOptions(argc, (const char **)argv, "");
LLVMInitializeCore(LLVMGetGlobalPassRegistry());

// Initialize native target codegen and asm printer.
LLVMInitializeNativeTarget();
Expand Down
Expand Up @@ -9,7 +9,6 @@
#include "llvm-c/Core.h"
#include "llvm-c/Error.h"
#include "llvm-c/IRReader.h"
#include "llvm-c/Initialization.h"
#include "llvm-c/LLJIT.h"
#include "llvm-c/Support.h"
#include "llvm-c/Target.h"
Expand Down Expand Up @@ -167,7 +166,6 @@ int main(int argc, char *argv[]) {

// Parse command line arguments and initialize LLVM Core.
LLVMParseCommandLineOptions(argc, (const char **)argv, "");
LLVMInitializeCore(LLVMGetGlobalPassRegistry());

// Initialize native target codegen and asm printer.
LLVMInitializeNativeTarget();
Expand Down

0 comments on commit 4d513bd

Please sign in to comment.