diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-02 07:19:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-02 07:19:18 +0000 |
commit | 2c8569d5f43f7de1fb993e84c95ea571dd9ac55e (patch) | |
tree | 891ec632e7acd573a5537b9df5054186cce30511 /CodeGen/CodeGenModule.h | |
parent | 9cd4fe4af6d3e8b6dcfce9c2cdefcaafca7eed7c (diff) |
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
Diffstat (limited to 'CodeGen/CodeGenModule.h')
-rw-r--r-- | CodeGen/CodeGenModule.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |