Clean up and centralize LLVM target initialization
This commit is contained in:
4
ispc.cpp
4
ispc.cpp
@@ -72,10 +72,6 @@ Module *m;
|
||||
bool
|
||||
Target::GetTarget(const char *arch, const char *cpu, const char *isa,
|
||||
Target *t) {
|
||||
// initialize available targets
|
||||
LLVMInitializeX86Target();
|
||||
LLVMInitializeX86TargetInfo();
|
||||
|
||||
if (cpu == NULL) {
|
||||
std::string hostCPU = llvm::sys::getHostCPUName();
|
||||
if (hostCPU.size() > 0)
|
||||
|
||||
Reference in New Issue
Block a user