diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-09-04 03:43:08 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-09-04 03:43:08 +0000 |
commit | f2cf6d16e6046233b05728a64119c69709e682ed (patch) | |
tree | 104d7af02f97cd542ce96cc7d38417e72982078d /clang/lib/CodeGen/CodeGenModule.h | |
parent | 8cde00a510a3cf129f73c559589cf5e36de63007 (diff) | |
download | bcm5719-llvm-f2cf6d16e6046233b05728a64119c69709e682ed.tar.gz bcm5719-llvm-f2cf6d16e6046233b05728a64119c69709e682ed.zip |
Avoid superfluous errors regarding variable-length arrays (casts).
llvm-svn: 55759
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index b339ae9d674..70a91b6a997 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -194,12 +194,18 @@ public: const AnnotateAttr *AA, unsigned LineNo); /// ErrorUnsupported - Print out an error that codegen doesn't support the - /// specified stmt yet. - void ErrorUnsupported(const Stmt *S, const char *Type); + /// specified stmt yet. + /// \param OmitOnError - If true, then this error should only be + /// emitted if no other errors have been reported. + void ErrorUnsupported(const Stmt *S, const char *Type, + bool OmitOnError=false); /// ErrorUnsupported - Print out an error that codegen doesn't support the /// specified decl yet. - void ErrorUnsupported(const Decl *D, const char *Type); + /// \param OmitOnError - If true, then this error should only be + /// emitted if no other errors have been reported. + void ErrorUnsupported(const Decl *D, const char *Type, + bool OmitOnError=false); private: void SetFunctionAttributes(const FunctionDecl *FD, |