Mercurial > projects > ldc
diff gen/main.cpp @ 1569:755abafbf25d
Push the context through StructType::get.
Requires LLVM >= 78258. Also remove old #if's.
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Thu, 06 Aug 2009 01:47:39 +0200 |
parents | c03d164e96d9 |
children | ab03cfb3a212 |
line wrap: on
line diff
--- a/gen/main.cpp Thu Aug 06 17:04:36 2009 +0200 +++ b/gen/main.cpp Thu Aug 06 01:47:39 2009 +0200 @@ -483,11 +483,7 @@ FeaturesStr = Features.getString(); } -#if LLVM_REV < 77946 - std::auto_ptr<llvm::TargetMachine> target(theTarget->createTargetMachine(mod, FeaturesStr)); -#else std::auto_ptr<llvm::TargetMachine> target(theTarget->createTargetMachine(mod.getTargetTriple(), FeaturesStr)); -#endif assert(target.get() && "Could not allocate target machine!"); gTargetMachine = target.get(); gTargetData = gTargetMachine->getTargetData();