Provide an extremely unsatisfactory diagnostic (instead of crashing) when

mangling an unknown expression kind.  Also conveniently tells the user what
kind of expression they should add to the mangler!

llvm-svn: 100907
This commit is contained in:
John McCall
2010-04-09 22:26:14 +00:00
parent 607e02b33a
commit 6936c863b0
3 changed files with 23 additions and 4 deletions

View File

@@ -47,7 +47,8 @@ CodeGenModule::CodeGenModule(ASTContext &C, const CodeGenOptions &CGO,
Features(C.getLangOptions()), CodeGenOpts(CGO), TheModule(M),
TheTargetData(TD), TheTargetCodeGenInfo(0), Diags(diags),
Types(C, M, TD, getTargetCodeGenInfo().getABIInfo()),
MangleCtx(C), VTables(*this), Runtime(0), CFConstantStringClassRef(0),
MangleCtx(C, diags), VTables(*this), Runtime(0),
CFConstantStringClassRef(0),
VMContext(M.getContext()) {
if (!Features.ObjC1)