summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenModule.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/CodeGenModule.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/CodeGenModule.cpp')
-rw-r--r--clang/CodeGen/CodeGenModule.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/CodeGen/CodeGenModule.cpp b/clang/CodeGen/CodeGenModule.cpp
index 171a70c5a0c..54009b0e423 100644
--- a/clang/CodeGen/CodeGenModule.cpp
+++ b/clang/CodeGen/CodeGenModule.cpp
@@ -26,8 +26,9 @@ using namespace CodeGen;
CodeGenModule::CodeGenModule(ASTContext &C, const LangOptions &LO,
- llvm::Module &M, const llvm::TargetData &TD)
- : Context(C), Features(LO), TheModule(M), TheTargetData(TD),
+ llvm::Module &M, const llvm::TargetData &TD,
+ Diagnostic &diags)
+ : Context(C), Features(LO), TheModule(M), TheTargetData(TD), Diags(diags),
Types(C, M, TD), MemCpyFn(0), CFConstantStringClassRef(0) {}
llvm::Constant *CodeGenModule::GetAddrOfGlobalDecl(const ValueDecl *D) {
OpenPOWER on IntegriCloud