Clean up and centralize LLVM target initialization

This commit is contained in:
Matt Pharr
2011-08-26 10:15:33 -07:00
parent a322398c62
commit 54ec56c81d
3 changed files with 20 additions and 20 deletions

View File

@@ -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)