summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenModule.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
commitc8dbe1e5d6560b40346e4d35e815b595dd024700 (patch)
tree76bc410cebe4c76f6cf4eac453ad4072578cd8bc /clang/CodeGen/CodeGenModule.h
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.h')
-rw-r--r--clang/CodeGen/CodeGenModule.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/CodeGen/CodeGenModule.h b/clang/CodeGen/CodeGenModule.h
index 9278e686410..c4867c0bfaf 100644
--- a/clang/CodeGen/CodeGenModule.h
+++ b/clang/CodeGen/CodeGenModule.h
@@ -34,6 +34,7 @@ namespace clang {
class ValueDecl;
class FileVarDecl;
struct LangOptions;
+ class Diagnostic;
namespace CodeGen {
@@ -44,6 +45,7 @@ class CodeGenModule {
const LangOptions &Features;
llvm::Module &TheModule;
const llvm::TargetData &TheTargetData;
+ Diagnostic &Diags;
CodeGenTypes Types;
llvm::Function *MemCpyFn;
@@ -56,12 +58,13 @@ class CodeGenModule {
std::vector<llvm::Function *> BuiltinFunctions;
public:
CodeGenModule(ASTContext &C, const LangOptions &Features, llvm::Module &M,
- const llvm::TargetData &TD);
+ const llvm::TargetData &TD, Diagnostic &Diags);
ASTContext &getContext() const { return Context; }
const LangOptions &getLangOptions() const { return Features; }
llvm::Module &getModule() const { return TheModule; }
CodeGenTypes &getTypes() { return Types; }
+ Diagnostic &getDiags() const { return Diags; }
llvm::Constant *GetAddrOfGlobalDecl(const ValueDecl *D);
OpenPOWER on IntegriCloud