diff options
author | John McCall <rjmccall@apple.com> | 2011-04-07 08:22:57 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-04-07 08:22:57 +0000 |
commit | 319963434cab037c9fabf7d631816d3eaf5bfc1d (patch) | |
tree | 51089b4e3f62260bc84aafbe72e10dc2e382339a /clang/lib/AST/ItaniumMangle.cpp | |
parent | 5ddaab1789d7a7ac6bee56b75ec6f44184d66e8b (diff) | |
download | bcm5719-llvm-319963434cab037c9fabf7d631816d3eaf5bfc1d.tar.gz bcm5719-llvm-319963434cab037c9fabf7d631816d3eaf5bfc1d.zip |
Basic, untested implementation for an "unknown any" type requested by LLDB.
The idea is that you can create a VarDecl with an unknown type, or a
FunctionDecl with an unknown return type, and it will still be valid to
access that object as long as you explicitly cast it at every use. I'm
still going back and forth about how I want to test this effectively, but
I wanted to go ahead and provide a skeletal implementation for the LLDB
folks' benefit and because it also improves some diagnostic goodness for
placeholder expressions.
llvm-svn: 129065
Diffstat (limited to 'clang/lib/AST/ItaniumMangle.cpp')
-rw-r--r-- | clang/lib/AST/ItaniumMangle.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/ItaniumMangle.cpp b/clang/lib/AST/ItaniumMangle.cpp index 6ab68dbae92..be17ccf2d82 100644 --- a/clang/lib/AST/ItaniumMangle.cpp +++ b/clang/lib/AST/ItaniumMangle.cpp @@ -1327,6 +1327,7 @@ void CXXNameMangler::mangleType(const BuiltinType *T) { case BuiltinType::Overload: case BuiltinType::Dependent: + case BuiltinType::UnknownAny: assert(false && "Overloaded and dependent types shouldn't get to name mangling"); break; |