warn about unhandled initializers instead of crashing on them.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44510 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/CodeGen/CodeGenModule.h b/CodeGen/CodeGenModule.h
index 027c830..4d4b18a 100644
--- a/CodeGen/CodeGenModule.h
+++ b/CodeGen/CodeGenModule.h
@@ -31,6 +31,7 @@
class FunctionDecl;
class Decl;
class Expr;
+ class Stmt;
class ValueDecl;
class FileVarDecl;
struct LangOptions;
@@ -88,6 +89,10 @@
void PrintStats() {}
+ /// WarnUnsupported - Print out a warning that codegen doesn't support the
+ /// specified stmt yet.
+ void WarnUnsupported(const Stmt *S, const char *Type);
+
private:
/// ReplaceMapValuesWith - This is a really slow and bad function that
/// searches for any entries in GlobalDeclMap that point to OldVal, changing