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
diff --git a/CodeGen/CodeGenModule.h b/CodeGen/CodeGenModule.h
index 9278e68..c4867c0 100644
--- a/CodeGen/CodeGenModule.h
+++ b/CodeGen/CodeGenModule.h
@@ -34,6 +34,7 @@
   class ValueDecl;
   class FileVarDecl;
   struct LangOptions;
+  class Diagnostic;
     
 namespace CodeGen {
 
@@ -44,6 +45,7 @@
   const LangOptions &Features;
   llvm::Module &TheModule;
   const llvm::TargetData &TheTargetData;
+  Diagnostic &Diags;
   CodeGenTypes Types;
 
   llvm::Function *MemCpyFn;
@@ -56,12 +58,13 @@
   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);