aboutsummaryrefslogtreecommitdiff
path: root/include/clang/CodeGen/ModuleBuilder.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-02 01:40:18 +0000
committerChris Lattner <sabre@nondot.org>2007-12-02 01:40:18 +0000
commitfb97b03e42d397405f617be0252be83e77a66f6e (patch)
tree4db6feaf8cdd07a20e50e41585bb42e377eda0c4 /include/clang/CodeGen/ModuleBuilder.h
parentbbb75f63001af0d9b62995d3a5d62f7469bd74d3 (diff)
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 <t.c:3331:5, line:3334:28>) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/CodeGen/ModuleBuilder.h')
-rw-r--r--include/clang/CodeGen/ModuleBuilder.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/CodeGen/ModuleBuilder.h b/include/clang/CodeGen/ModuleBuilder.h
index 9ca3648337..2ab7d2dc2b 100644
--- a/include/clang/CodeGen/ModuleBuilder.h
+++ b/include/clang/CodeGen/ModuleBuilder.h
@@ -24,13 +24,15 @@ namespace clang {
class FunctionDecl;
class FileVarDecl;
struct LangOptions;
+ class Diagnostic;
namespace CodeGen {
class CodeGenModule;
/// Init - Create an ModuleBuilder with the specified ASTContext.
CodeGenModule *Init(ASTContext &Context, const LangOptions &Features,
- llvm::Module &M, const llvm::TargetData &TD);
+ llvm::Module &M, const llvm::TargetData &TD,
+ Diagnostic &Diags);
/// CodeGenFunction - Convert the AST node for a FunctionDecl into LLVM.
///