summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/ModuleBuilder.cpp
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
commitc8dbe1e5d6560b40346e4d35e815b595dd024700 (patch)
tree76bc410cebe4c76f6cf4eac453ad4072578cd8bc /clang/CodeGen/ModuleBuilder.cpp
parent963540dc28efed7fa68e8b05398847474fd5c1a1 (diff)
downloadbcm5719-llvm-c8dbe1e5d6560b40346e4d35e815b595dd024700.tar.gz
bcm5719-llvm-c8dbe1e5d6560b40346e4d35e815b595dd024700.zip
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>) llvm-svn: 44501
Diffstat (limited to 'clang/CodeGen/ModuleBuilder.cpp')
-rw-r--r--clang/CodeGen/ModuleBuilder.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/CodeGen/ModuleBuilder.cpp b/clang/CodeGen/ModuleBuilder.cpp
index adc18781961..9d2874984ad 100644
--- a/clang/CodeGen/ModuleBuilder.cpp
+++ b/clang/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) {
OpenPOWER on IntegriCloud