diff options
author | Alp Toker <alp@nuanti.com> | 2014-01-02 15:08:04 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-01-02 15:08:04 +0000 |
commit | e83b9060cb913bd687fb5a78298404f8283cf3cb (patch) | |
tree | de623fa40c17f50c5d08e071ccc084ee2cbf48db /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | 961728064e0a3d13cb99d7db1144831056ff04f4 (diff) | |
download | bcm5719-llvm-e83b9060cb913bd687fb5a78298404f8283cf3cb.tar.gz bcm5719-llvm-e83b9060cb913bd687fb5a78298404f8283cf3cb.zip |
Verify that clang TargetInfo descriptions match DataLayout strings from LLVM
The backend string is only verified when available as it's possible to run
clang IRGen for targets that haven't been built or don't exist in LLVM.
llvm-svn: 198309
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenAction.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index 8efeba68e51..d4f3b8db955 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/lib/CodeGen/CodeGenAction.cpp @@ -150,6 +150,7 @@ namespace clang { Ctx.setInlineAsmDiagnosticHandler(InlineAsmDiagHandler, this); EmitBackendOutput(Diags, CodeGenOpts, TargetOpts, LangOpts, + C.getTargetInfo().getTargetDescription(), TheModule.get(), Action, AsmOutStream); Ctx.setInlineAsmDiagnosticHandler(OldHandler, OldContext); @@ -420,10 +421,9 @@ void CodeGenAction::ExecuteAction() { TheModule->setTargetTriple(TargetOpts.Triple); } - EmitBackendOutput(CI.getDiagnostics(), CI.getCodeGenOpts(), - TargetOpts, CI.getLangOpts(), - TheModule.get(), - BA, OS); + EmitBackendOutput(CI.getDiagnostics(), CI.getCodeGenOpts(), TargetOpts, + CI.getLangOpts(), CI.getTarget().getTargetDescription(), + TheModule.get(), BA, OS); return; } |