diff options
author | John McCall <rjmccall@apple.com> | 2010-04-09 22:26:14 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-04-09 22:26:14 +0000 |
commit | 6ae1f35cedb5a847f15f86bdb227b7bbe574a344 (patch) | |
tree | e68724a074634710735e33e25dacd94bcb8dd41e /lib/CodeGen/CodeGenModule.cpp | |
parent | de81063acdc999fbe1225f466ead12f7e9107acf (diff) |
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!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100907 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 1cb7089210..01c4f4e57b 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -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) |