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 | 2a030a3aec48ed18846518aab60e5e5e72f381cc (patch) | |
| tree | 7bc2e30a55613ecef9e353e139356a116ced09d2 /lib/CodeGen/CodeGenAction.cpp | |
| parent | 65f5b90a5b0623d7fc053050ca0fade528ed12ee (diff) | |
| download | clang-2a030a3aec48ed18846518aab60e5e5e72f381cc.tar.gz clang-2a030a3aec48ed18846518aab60e5e5e72f381cc.tar.bz2 clang-2a030a3aec48ed18846518aab60e5e5e72f381cc.tar.xz | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198309 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenAction.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenAction.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index 8efeba68e5..d4f3b8db95 100644 --- a/lib/CodeGen/CodeGenAction.cpp +++ b/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; } |
