From 2c8569d5f43f7de1fb993e84c95ea571dd9ac55e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 2 Dec 2007 07:19:18 +0000 Subject: 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 --- CodeGen/CodeGenModule.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CodeGen/CodeGenModule.h') diff --git a/CodeGen/CodeGenModule.h b/CodeGen/CodeGenModule.h index 027c8303aa..4d4b18ab62 100644 --- a/CodeGen/CodeGenModule.h +++ b/CodeGen/CodeGenModule.h @@ -31,6 +31,7 @@ namespace clang { class FunctionDecl; class Decl; class Expr; + class Stmt; class ValueDecl; class FileVarDecl; struct LangOptions; @@ -88,6 +89,10 @@ public: 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 -- cgit v1.2.3-18-g5258