Switch TargetInfo to store an llvm::Triple.

- Primarily to discourage clients form making decisions based on the string.

llvm-svn: 79901
This commit is contained in:
Daniel Dunbar
2009-08-24 09:10:05 +00:00
parent e3532f82a7
commit 40165180f7
6 changed files with 43 additions and 44 deletions

View File

@@ -54,7 +54,7 @@ namespace {
virtual void Initialize(ASTContext &Context) {
Ctx = &Context;
M->setTargetTriple(Ctx->Target.getTargetTriple());
M->setTargetTriple(Ctx->Target.getTriple().getTriple());
M->setDataLayout(Ctx->Target.getTargetDescription());
TD.reset(new llvm::TargetData(Ctx->Target.getTargetDescription()));
Builder.reset(new CodeGen::CodeGenModule(Context, CompileOpts,