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 | d45aa2a03b79dbd9302c217c3966e8d9fda8400e (patch) | |
| tree | 5fb296b4a5366c4de25cd0f40f4781d5d1dd6d80 /clang/CodeGen/CodeGenModule.h | |
| parent | 5bcdf24a50a587af807decdfb060a4f35a373a18 (diff) | |
| download | bcm5719-llvm-d45aa2a03b79dbd9302c217c3966e8d9fda8400e.tar.gz bcm5719-llvm-d45aa2a03b79dbd9302c217c3966e8d9fda8400e.zip | |
warn about unhandled initializers instead of crashing on them.
llvm-svn: 44510
Diffstat (limited to 'clang/CodeGen/CodeGenModule.h')
| -rw-r--r-- | clang/CodeGen/CodeGenModule.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/CodeGen/CodeGenModule.h b/clang/CodeGen/CodeGenModule.h index 027c8303aa2..4d4b18ab627 100644 --- a/clang/CodeGen/CodeGenModule.h +++ b/clang/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 |

