summaryrefslogtreecommitdiff
path: root/lib/CodeGen/Mangle.cpp
Commit message (Collapse)AuthorAge
...
* Always mangle functions with special names. Fixes PR5420.Anders Carlsson2009-11-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86350 91177308-0d34-0410-b5e6-96231b3b80d8
* When looking up and adding substitutions to the substitution table, make ↵Anders Carlsson2009-11-07
| | | | | | sure to always use the canonical declaration. With tihs change, FileCheck compiles and links but crashes during startup. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86339 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle ParenExprs in mangleExpression.Anders Carlsson2009-11-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86218 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix thinko, mangleCXXRtti should obviously take a QualType!Anders Carlsson2009-10-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85565 91177308-0d34-0410-b5e6-96231b3b80d8
* mangleCXXRtti obviously needs to take a type, what was I thinking...Anders Carlsson2009-10-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85555 91177308-0d34-0410-b5e6-96231b3b80d8
* Mangle based on the declaration we're given, not the canonicalDouglas Gregor2009-10-28
| | | | | | | | | declaration, since attributes that affect mangling may have been added to subsequent declarations. However, to determine the linkage of the declaration, we need to look at the canonical declaration. Fixes PR4412. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85400 91177308-0d34-0410-b5e6-96231b3b80d8
* Add mangling for VTTs.Mike Stump2009-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85363 91177308-0d34-0410-b5e6-96231b3b80d8
* When building types from declarators, instead of building two types (one forJohn McCall2009-10-22
| | | | | | | | | | | | | | | | | | | | | | | the DeclaratorInfo, one for semantic analysis), just build a single type whose canonical type will reflect the semantic analysis (assuming the type is well-formed, of course). To make that work, make a few changes to the type system: * allow the nominal pointee type of a reference type to be a (possibly sugared) reference type. Also, preserve the original spelling of the reference type. Both of these can be ignored on canonical reference types. * Remove ObjCProtocolListType and preserve the associated source information on the various ObjC TypeLocs. Preserve the spelling of protocol lists except in the canonical form. * Preserve some level of source type structure on parameter types, but canonicalize on the canonical function type. This is still a WIP. Drops code size, makes strides towards accurate source location representation, slight (~1.7%) progression on Cocoa.h because of complexity drop. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84907 91177308-0d34-0410-b5e6-96231b3b80d8
* PR5218: Replace IdentifierInfo::getName with StringRef version, now that clientsDaniel Dunbar2009-10-18
| | | | | | are updated. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84447 91177308-0d34-0410-b5e6-96231b3b80d8
* Move misc clients to IdentifierInfo StringRef API.Daniel Dunbar2009-10-18
| | | | | | | | | - strcmp -> == - OS.write(II->getName() ...) -> OS << II->getNameStr() - Avoid std::string concatenation - Use getNameStr().str() when an std::string is really needed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84437 91177308-0d34-0410-b5e6-96231b3b80d8
* Builtin types are subsitutable if they are qualified. Fixes PR5196.Anders Carlsson2009-10-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84237 91177308-0d34-0410-b5e6-96231b3b80d8
* Change mangleCXXVtable and mangleCXXRtti to take CXXRecordDecls instead of ↵Anders Carlsson2009-10-11
| | | | | | QualTypes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83793 91177308-0d34-0410-b5e6-96231b3b80d8
* Mangle std::basic_ostream<char, std::char_traits<char>> as So.Anders Carlsson2009-10-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83557 91177308-0d34-0410-b5e6-96231b3b80d8
* Mangle anonymous structs/unions correctly. Fixes PR5139.Anders Carlsson2009-10-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83448 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a MangleContext and pass it to all mangle functions. It will be used for ↵Anders Carlsson2009-10-07
| | | | | | keeping state, such as identifiers assigned to anonymous structs as well as scope encoding. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83442 91177308-0d34-0410-b5e6-96231b3b80d8
* When mangling names, always use the canonical decl. Fixes PR5144.Anders Carlsson2009-10-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83420 91177308-0d34-0410-b5e6-96231b3b80d8
* Anonymous namespaces, sema + codegen. A lot of semantics are still broken,John McCall2009-10-01
| | | | | | | | apparently because using directives aren't quite working correctly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83184 91177308-0d34-0410-b5e6-96231b3b80d8
* Mangle dependent name expressions. Fixes PR5063.Anders Carlsson2009-09-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82915 91177308-0d34-0410-b5e6-96231b3b80d8
* Use mangleTemplatePrefix when we know that we're mangling a nested template ↵Anders Carlsson2009-09-27
| | | | | | name. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82912 91177308-0d34-0410-b5e6-96231b3b80d8
* Look for substitutions when mangling TypenameTypes.Anders Carlsson2009-09-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82885 91177308-0d34-0410-b5e6-96231b3b80d8
* Better template parameter type mangling.Anders Carlsson2009-09-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82883 91177308-0d34-0410-b5e6-96231b3b80d8
* Mangle std::basic_string<char, std::char_traits<char>, std::allocator<char> ↵Anders Carlsson2009-09-27
| | | | | | > as Ss. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82882 91177308-0d34-0410-b5e6-96231b3b80d8
* Mangle ::std::basic_string as Sb.Anders Carlsson2009-09-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82881 91177308-0d34-0410-b5e6-96231b3b80d8
* Mangle ::std::allocator as Sa.Anders Carlsson2009-09-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82880 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle substitutions in mangleTemplatePrefix.Anders Carlsson2009-09-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82879 91177308-0d34-0410-b5e6-96231b3b80d8
* Substitute "::std::" as "St".Anders Carlsson2009-09-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82874 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't crash when trying to mangle function templates.Anders Carlsson2009-09-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82872 91177308-0d34-0410-b5e6-96231b3b80d8
* mangleTemplatePrefix and mangleUnscopedTemplateName should take a TemplateDecl.Anders Carlsson2009-09-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82871 91177308-0d34-0410-b5e6-96231b3b80d8
* Mangle record types as decls.Anders Carlsson2009-09-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82843 91177308-0d34-0410-b5e6-96231b3b80d8
* Change isTemplate to return the actual template declaration.Anders Carlsson2009-09-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82839 91177308-0d34-0410-b5e6-96231b3b80d8
* Improve mangling of typename types.Anders Carlsson2009-09-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82833 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactor the representation of qualifiers to bring ExtQualType out of theJohn McCall2009-09-24
| | | | | | | | | | Type hierarchy. Demote 'volatile' to extended-qualifier status. Audit our use of qualifiers and fix a few places that weren't dealing with qualifiers quite right; many more remain. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82705 91177308-0d34-0410-b5e6-96231b3b80d8
* CXXMethodDecls should always be mangled, even if they are inside an extern ↵Anders Carlsson2009-09-22
| | | | | | "C" block. Fixes PR5017. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82567 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't assert that linkage decls are always C++, it's not true. Fixes PR5019.Anders Carlsson2009-09-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82557 91177308-0d34-0410-b5e6-96231b3b80d8
* Change all the Type::getAsFoo() methods to specializations of Type::getAs().John McCall2009-09-21
| | | | | | | | | | | | | Several of the existing methods were identical to their respective specializations, and so have been removed entirely. Several more 'leaf' optimizations were introduced. The getAsFoo() methods which imposed extra conditions, like getAsObjCInterfacePointerType(), have been left in place. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82501 91177308-0d34-0410-b5e6-96231b3b80d8
* Start mangling expressions.Anders Carlsson2009-09-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82423 91177308-0d34-0410-b5e6-96231b3b80d8
* More mangling work.Anders Carlsson2009-09-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82265 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the mangler conform even better to the grammar.Anders Carlsson2009-09-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82262 91177308-0d34-0410-b5e6-96231b3b80d8
* More mangler mangling.Anders Carlsson2009-09-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82250 91177308-0d34-0410-b5e6-96231b3b80d8
* Call mangleTemplatePrefix.Anders Carlsson2009-09-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82247 91177308-0d34-0410-b5e6-96231b3b80d8
* Change manglePrefix to return early if the DC is the translation unit.Anders Carlsson2009-09-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82246 91177308-0d34-0410-b5e6-96231b3b80d8
* More mangling goodness.Anders Carlsson2009-09-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82193 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle mangling of TemplateSpecializationType.Anders Carlsson2009-09-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82189 91177308-0d34-0410-b5e6-96231b3b80d8
* Ignore extern "C++" { } when mangling.Anders Carlsson2009-09-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82146 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r82123 for now.Anders Carlsson2009-09-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82125 91177308-0d34-0410-b5e6-96231b3b80d8
* Treat an unqualified RecordType as a RecordDecl when substituting.Anders Carlsson2009-09-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82123 91177308-0d34-0410-b5e6-96231b3b80d8
* Substitution for prefixes.Anders Carlsson2009-09-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82122 91177308-0d34-0410-b5e6-96231b3b80d8
* Substitute unscoped template names.Anders Carlsson2009-09-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82119 91177308-0d34-0410-b5e6-96231b3b80d8
* Add mangleSubstitution/addSubstitution variants that take a NamedDecl.Anders Carlsson2009-09-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82116 91177308-0d34-0410-b5e6-96231b3b80d8
* When mangling function template specialization, mangle the type encoding of ↵Anders Carlsson2009-09-17
| | | | | | the original function template. Also, port mangle.cpp and function-template-specialization.cpp over to using FileCheck. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82114 91177308-0d34-0410-b5e6-96231b3b80d8