From fb97b03e42d397405f617be0252be83e77a66f6e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 2 Dec 2007 01:40:18 +0000 Subject: Warn about unsupported codegen with the diags machinery, giving us: t.c:3322:5: warning: cannot codegen this yet __asm__ ("bswap %0" : "+r" (_data)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ instead of: Unimplemented stmt! (AsmStmt 0x80eaa0 ) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44501 91177308-0d34-0410-b5e6-96231b3b80d8 --- CodeGen/ModuleBuilder.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'CodeGen/ModuleBuilder.cpp') diff --git a/CodeGen/ModuleBuilder.cpp b/CodeGen/ModuleBuilder.cpp index adc1878196..9d2874984a 100644 --- a/CodeGen/ModuleBuilder.cpp +++ b/CodeGen/ModuleBuilder.cpp @@ -19,8 +19,9 @@ using namespace clang; /// Init - Create an ModuleBuilder with the specified ASTContext. clang::CodeGen::CodeGenModule * clang::CodeGen::Init(ASTContext &Context, const LangOptions &Features, - llvm::Module &M, const llvm::TargetData &TD) { - return new CodeGenModule(Context, Features, M, TD); + llvm::Module &M, const llvm::TargetData &TD, + Diagnostic &Diags) { + return new CodeGenModule(Context, Features, M, TD, Diags); } void clang::CodeGen::Terminate(CodeGenModule *B) { -- cgit v1.2.3-18-g5258