diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-02 01:49:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-02 01:49:16 +0000 |
commit | f0780fae4318c38f3204d30bddf6032c5dcc8493 (patch) | |
tree | e62cc22ccb54e628308c5507b937003bb6848767 /clang/CodeGen/CodeGenFunction.cpp | |
parent | fc94434fafd39d8cb709a449ec1b0671559f282c (diff) | |
download | bcm5719-llvm-f0780fae4318c38f3204d30bddf6032c5dcc8493.tar.gz bcm5719-llvm-f0780fae4318c38f3204d30bddf6032c5dcc8493.zip |
convert the rest of the stderr users in codegen to use diagnostics.
llvm-svn: 44503
Diffstat (limited to 'clang/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/CodeGen/CodeGenFunction.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/CodeGen/CodeGenFunction.cpp b/clang/CodeGen/CodeGenFunction.cpp index db5072be0b9..0da5fcdaaaf 100644 --- a/clang/CodeGen/CodeGenFunction.cpp +++ b/clang/CodeGen/CodeGenFunction.cpp @@ -147,10 +147,11 @@ const CGRecordLayout *CodeGenFunction::getCGRecordLayout(CodeGenTypes &CGT, /// WarnUnsupported - Print out a warning that codegen doesn't support the /// specified stmt yet. -void CodeGenFunction::WarnUnsupported(const Stmt *S) { +void CodeGenFunction::WarnUnsupported(const Stmt *S, const char *Type) { unsigned DiagID = CGM.getDiags().getCustomDiagID(Diagnostic::Warning, - "cannot codegen this yet"); + "cannot codegen this %0 yet"); SourceRange Range = S->getSourceRange(); - CGM.getDiags().Report(S->getLocStart(), DiagID, 0, 0, &Range, 1); + std::string Msg = Type; + CGM.getDiags().Report(S->getLocStart(), DiagID, &Msg, 1, &Range, 1); } |